Please complete in pseudocode . No language. Create the pseudocode design to inc
ID: 3918955 • Letter: P
Question
Please complete in pseudocode. No language.
Create the pseudocode design to include at least the following modules.
Enter the ClassTitle into an array named Classes and NumberofSeats into an array named ClassSeats. (ClassSeats = -999 when end the file is reached)
Update Classes inventory (add to inventory/deduct from inventory)
Calculate and print the student’s 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.
Explanation / Answer
Pseudocode for the above defined modules are as follows:-
1. Create array[] named Classes
enter the ClassTitle in Classes[].
Create array[] named ClassSeats
enter the NumberofSeats in ClassSeats[].
2. Update inventory.
-add to inventory
-deduct from inventory.
3. Calculate student's Bill.
Print student's bill.
4. Calculate average no. of student in class.
Average no. of students= Total students(NumberofSeats)/ total no of classes.
Print average no. of student in class.
5. Choices available to select for students:-
-add a class.
-drop a class.
-display their schedule.
6. If student select "add a class"
then bill is calculated and printed.
If student select "drop a class"
then a message is printed on the screen after dropping the class.
==========================================================================
Thanks for asking.....Keep on Chegging.... :)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.