Unformatted text preview: algorithms to determine the total admission price to the museum based on the group size or the number of tickets being purchased. Algorithm 1 will use a stacked if structure and logical operators to correctly determine the cost. Algorithm 2 will use an elseif structure. No logical operators are permitted in algorithm 2. User input to both programs will be the group size (number of tickets being purchased). Output will be the total cost of the tickets expressed as $x.xx. Submit the flowchart, listing, and output from 4 sample runs with each algorithm. Use the following input values for the sample runs: 1, 4, 9, 25. In your discussion address the difference between the two decision structures used to solve this problem and why one is more efficient than the other....
View Full Document
- Fall '06
- Logic, Equivalent Logic Presentation, small group rate, individual entry fee, total admission price