Question: Modify the pseudocode design that you created in following modules. Enter the ClassTitle into an array named Classes and NumberofSeats into an array named ClassSeats

Modify the pseudocode design that you created in following modules.

Enter the ClassTitle into an array named Classes and NumberofSeats into an array named ClassSeats. The information for the Classes is stored in the ITP100ClassName_LastName file. (ClassSeats = -999 when end the file is reached)

Update Classes inventory (add to inventory/deduct from inventory)

Calculate and print the students bill.

Calculate and print the total number of students in each class.

Calculate and print the average number of students in each class.

The student will be prompted to enter their student ID and whether they want to add a class, drop a class or display their schedule.

Add a class - after the student has finished entering the class title(s), the system will calculate and print the bill.

Drop a class a message is printed on the screen after dropping the class.

code:

Module Main()

Declare Real studentID

Declare array of String class[4]

Declare Integer credits

Declare Real workHours

Declare Double cost = 150.00

Declare Double techFee = 0.05

Declare Double total

Module StudentID()

Display please enter your studentID:

Input studentID

Display how many hours do you work?

Input workHours

Display how many classes will you be taking?

Input credits

if credits <= 3

FOR i = 1 to credits

Display please enter class number i's name

Input class[i]

END FOR

if credits = 3

set credits = 2

END IF

if workHours > 20

Display please make an appointment with a faculty advisor

Else

Set total = (cost * credits) + ((cost * credits) * techFee)

End IF

Module CalculateBill()

Display your studentID is: , studentID, and your total cost is:, total, dollars.

ELSE

Module PrintBill()

Display too many classes, only can have a maximum of 3 classes

End IF

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!