I need help on this project ASAP as its submition date is to

I need help on this project ASAP as its submition date is today.

Project – Part 5 – Arrays

Only the pseudo code is needed. Not any specific language.

Modify the pseudocode design that you created in ITP 100 Project – Part 4 to include at least the following modules.

Enter the ClassTitle into an array named Classes and Number of Seats 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 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.

ITP 100 Project – Part 4

//Declare constants

Constant Real cost = 150.00

Constant Real techFee = 0.05

Module Main ()

//Local Variables

Declare Integer studentId,

Declare Real total

//get student Id

Call getStudentId(Integer studentId)

//Calculate the total bill

Call CalcTotalBill(real total)

//Display the bill

Call displayTotalBill(Intege studentId,real total)

End Module

Module getStudentID(Ref Integer StudentId)

//Get Student Id

Display “Please enter your student ID “

Input studentID

End Module

Module CalcTotalBill(Ref Real total)

//Declare variables

Declare String class1, class2, class3

Declare Real workhour

         Declare Integer numOfClasses

//Get number of hours working

Display “how many hours do you work?”

Input workHours

//Get number of classes and calculate total

Display “how many classes do you want to take?”

Input numOfClasses

Select numberOfClasses

Case numOfClasses== 3:

For 1 to 3 Step1

Display “please enter Class name”, count

Input Class1, Class2, Class3

End For

if workHours > 20

Display “please make an appointment with a faculty advisor”

Else

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

End if

Case numOfClasses == 2:

For 1 to 2 Step 1

Display “please enter Class name”, count

Input Class1, Class2

End For

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

Case numOfClasses ==1:

Display “please enter class’s name”

Input class1

Set total = cost + (cost * techFee)

Default:

Display “You Can choose only a maximum of three classes”

End Module

//Accepts the parameter

Module displayTotalBill(Integer studentId,Real total)

//display the student id and the total bill.

      Display “your student ID is: “, studentId, “and your total cost is:”, total, “dollars.”

       End Module

Only the pseudo code is needed. Not any specific language.

Solution

Answer:

Modified pseudo code:

//Declare constants

Constant Real cost = 150.00

Constant Real techFee = 0.05

Module Main ()

//Local Variables

Declare Integer studentId,

Declare Real total

//get student Id

Display menu Add class,Drop class and schedule classes

Call getStudentId(Integer studentId)

If menu==1

//Calculate the total bill

Call CalcTotalBill(real total)

//Display the bill

Call displayTotalBill(Intege studentId,real total)

End if

Else if menu==2

Display ”dropping the class”

End Module

Module getStudentID(Ref Integer StudentId)

//Get Student Id

Display “Please enter your student ID “

Input studentID

End Module

Module CalcTotalBill(Ref Real total)

//Declare variables

Declare String class1, class2, class3

Declare Real workhour

         Declare Integer numOfClasses

//Get number of hours working

Display “how many hours do you work?”

Input workHours

//Get number of classes and calculate total

Display “how many classes do you want to take?”

Input numOfClasses

//Declare seats array and its size is equal to numOfClasses ;

Select numberOfClasses

Case numOfClasses== 3:

For 1 to 3 Step1

//read first three lines class name and its available seats from ITP100ClassName_LastName file.

//Also read available seats for each class.

End For

if workHours > 20

Display “please make an appointment with a faculty advisor”

Else

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

Print total;

End if

Case numOfClasses == 2:

For 1 to 2 Step 1

//read first two lines class name and its available seats from ITP100ClassName_LastName file.

//Also read available seats for each class.

End For

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

Print total;

Case numOfClasses ==1:

//read first line class name and its available seats from ITP100ClassName_LastName file.

//Also read available seats for each class.

Set total = cost + (cost * techFee)

Print total;

Default:

Display “You Can choose only a maximum of three classes”

End Module

//Accepts the parameter

Module displayTotalBill(Integer studentId,Real total)

//display the student id and the total bill.

      Display “your student ID is: “, studentId, “and your total cost is:”, total, “dollars.”

       End Module

I need help on this project ASAP as its submition date is today. Project – Part 5 – Arrays Only the pseudo code is needed. Not any specific language. Modify the
I need help on this project ASAP as its submition date is today. Project – Part 5 – Arrays Only the pseudo code is needed. Not any specific language. Modify the
I need help on this project ASAP as its submition date is today. Project – Part 5 – Arrays Only the pseudo code is needed. Not any specific language. Modify the
I need help on this project ASAP as its submition date is today. Project – Part 5 – Arrays Only the pseudo code is needed. Not any specific language. Modify the
I need help on this project ASAP as its submition date is today. Project – Part 5 – Arrays Only the pseudo code is needed. Not any specific language. Modify the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site