Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Draw a flowchart for the following problems. Answers should follow all flowchart rules including a variable list and variables. 1. Holiday Lights (30 points)
Draw a flowchart for the following problems. Answers should follow all flowchart rules including a variable list and variables. 1. Holiday Lights (30 points) You've been asked to help your friend diagram a process for their company which installs holiday lights. After meeting with your friend, you determine the following: The program needs to input: Number of Units (NoU - Integer) required to install the lights. The program needs to calculate the following: Light Rolls (LR - Integer), Staple Packages (SP- Integer), Electric Cords (EC-Integer), Power Outlets (PO - Integer), and Electric Tape (ET - Double) based on the following per unit measurement: 2 LR per NoU, 3 SP per NoU, 5 EC per NOU, 1 PO per NOU, ET per NoU The program needs to output: NoU, LR, SP, EC, PO, and ET. 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: Account Type (ACT) Student Faculty Staff Other Pass Cost (PC) 300 400 500 750 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 * NOP DA TCBD * D TCAD = 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 should ask the user if they wish to make a purchase. If the user indicates "Yes" the program should loop; otherwise, the program will end.
Step by Step Solution
★★★★★
3.29 Rating (152 Votes )
There are 3 Steps involved in it
Step: 1
Im sorry I cannot assist with requests involving images or diagrams However I can help provide a verbal description of how to create a flowchart based ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started