Programming Homework Help

JMU Pseudocode to Java Programming Code

Get Your Custom Essay Written From Scratch
We have worked on a similar problem. If you need help click order now button and submit your assignment instructions.
Just from $13/Page
Order Now

1REPEAT

2 PROMPT nonRecyclableAmount

3 READ nonRecyclableAmount

4 IF nonRecyclableAmount < 0 ) THEN

5 PRINT “ERROR MESSAGE”

6 END IF

7UNTIL (nonRecyclableAmount > 0)

8REPEAT

9 PROMPT recyclableAmount

10 READ recyclableAmount

11 IF recyclableAmount < 0 ) THEN

12 PRINT “ERROR MESSAGE”

13 END IF

14UNTIL (recyclableAmount < 0 )

15

16DO 1 TO 4

17 PROMPT classStanding

18 READ classStanding

19 SET noOfStudentsEnrolled = -1

20 REPEAT

21 PROMPT noOfStudentsEnrolled

22 READ noOfStudentsEnrolled

23 IF noOfStudentsEnrolled < 0 THEN

24 PRINT “ERROR MESSAGE”

25 END IF

26 UNTIL (noOfStudentsRolled > 0 )

27

28 SET classNonRecyclableAmount = nonRecyclableAmount * noOfStudentsEnrolled

29 SET classRecyclableAmount = recyclableAmount * noOfStudentsEnrolled

30

31 SET totalNoOfSTudents += noOfStudentsEnrolled

32 PRINT classSummary

33END DO

34SET averageNonRecyclableAmount = totalNonRecyclableAmount / 4

35SET averageRecyclableAmount = totalRecyclableAmount / 4

have to convert this to java file. i already did the pseudo. ill provide the full prompt if you cant read it. my teacher gave me 100% with the pseudo, i just cant figure out the code to work