Modify the pseudocode design that you created in ITP 100 Project – Part 4 to include at least the following modules.
studentID – to Enter the Student ID
calcBill – to Calculate the Bill
prtBill – to Print the Bill
After the student has finished entering the course titles, the system will calculate and print the bill.
Create a hierarchy chart for the modules.
Part 4:
CODE:
Constant Integer SIZE =20
Main module
Declare Integer studentID [SIZE]
Declare Integer courses [SIZE]
Declare real cost [SIZE]
Declare Integer index
Declare real totalBill
For index=0 to SIZE-1
Display "Please enter your student ID", index+1
Input studentID[index]
Display "How many courses you are taking?"
Input courses[index]
Display "The cost of your course"
Input cost[index]
End for
Set totalBill= cost[i]*courses[i]
Display "The total bill of you is"
For i=1 to 10
Display "Student ID:", studentID[index], "Course your taking", courses[i],
"and the total cost is", totalBill, "."
End