Reference no: EM132141133
Part A:
The university would like to encourage students to pick up their tickets at the will call window to reduce mail costs.
Revise the website program to reflect the following changes:
Ask the student how many events he or she wants to order.
Use a for loop instead of a while loop to prompt the student for input.
If the student wishes to have the tickets mailed, assess a $3.00 mail fee. If the student will pick the tickets up, there is no fee.
Discounts as described last week still apply.
Create a 1/2- to 1-page document containing pseudocode based on the revised program needs.
Create a 1-page flowchart based on the algorithm for the revised program needs.
Part B:
The university updated its website program design request with a few more features to fit its needs.
Update the website program to reflect the following changes:
Use an array to prompt the user to enter a credit card account number
Use the sequential search algorithm to locate the credit card number entered by the user
If the credit card number is not in the array, display a message indicating the number is invalid
If the credit card number is in the array, display a message indicating the credit card number is valid
Create a 1/2- to 1-page document containing pseudocode based on the revised program needs. Add the pseudocode statements to the existing pseudocode program.
Create a 1- to 2-page flowchart based on the algorithm for the revised program needs. Add the flowchart structure in the existing flowchart for the program.
Part C :
For completion of the program, use arrays and files.
Instead of just printing data on the screen, modify the program to reflect the following changes:
Write each item the student orders along with the price into a file.
Use a second loop to rad the file sum the prices of the tickets the student ordered and then apply te discounts described earlier to compute the total. Display the events and the prices on the screen.
Create a 1/2- to 1-page document containing pseudocode based on the revised program needs. Replace the pseudocode statements in the existing pseudocode program.
Create a 1- to 2-page flowchart based on the algorithm for the revised program needs. Replace the flowchart structure in the existing flowchart for the program.