Home /
Expert Answers /
Computer Science /
draw-a-flowchart-for-the-following-problem-andwes-should-follow-all-flowchart-rules-including-varia-pa583
(Solved): Draw a flowchart for the following problem. andwes should follow all flowchart rules including varia ...
Draw a flowchart for the following problem. andwes should follow all flowchart rules including variable list and variables
2. OU Parking Pass: (70 points) Assume you have been asked to develop an algorithm to determine the total cost for parking passes. Please draw the flowchart with variable list based on the information below. The user needs to input: Number of Passes (NOP - Integer), and Account Type (AcT - String). If the NOP is greater than 3 then the user receives a Discount ( D? Double) of 10%; otherwise, the Discount (D) is 0. The program will then determine the Pass Cost ( PC - Currency) by evaluating the Account Type (AcT). The decision structure for the Pass Cost (PC) is below: After determining the Pass Cost (PC), the program should then calculate the Total Cost Before Discount (TCBD Currency), Discount Amount (DA - Currency), and Total Cost After Discount (TCAD - Currency) based on the following formulas: TCBD=PC?NOPDA=TCBD?DTCAD=TCBD?DA? After calculating the formulas, the program needs to output: Number of Passes (NOP), Pass Cost (PC), Total Cost Before Discount (TCBD), Discount Amount (DA), and Total Cost After Discount (TCAD). Lastly, the program shotid ask the user if they wish to make a purchase. If the user indicates "Yes" the program should loop; otherwise, the program will end.