Reference no: EM13761828
Assignment
Your goal is to solve the following simple programming exercise.You have been contracted by a local stadium to design an algorithm determining the total seating charges for any game held at the stadium.Lower-level seats cost $25 per seat, mid-level seats cost $15 per seat, and upper-level seats cost $10 per seat.The algorithm should ask the user for the number of seats being purchased in each seating level.Then, the algorithm will determine the total for each level and a grand total for the entire purchase.
Be sure about the logic and design first (IPO chart, flowchart, and pseudocode).
Advanced (optional):Use constants for the per-seat cost for each level.
1) Variable List
List all of the variables that you will use (use valid variable names). Indicate whether the data type is string, integer, or double, and so on.
2) IPO Chart
List the inputs, any processes/calculations, and the outputs. Use the same valid variable names that you used in Step 1.
Inputs
|
Process (calculations)
|
Outputs
|
|
|
|
1) Flowchart
Use MS Visio to create a flowchart. Paste the flowchart here or attach it as a separate document. Use the same valid variable names that you used in Step 1.
4) Pseudocode
Describe your solution using pseudocode. Use the same valid variable names that you selected in Step 1.
5) Desk-Check
Desk-check your solution by using the following sample data.
Lowerlevel seats 3
Midlevel seats 4
Upperlevel seats 5
Enter the expected outputs.
Expected total cost lower level ____________
Expected total cost mid level _____________
Expected total upper level ____________
Expected total for all seats _____________
Write a paper on ethical dilemmas permeate criminal justice
: Write a case study on Ethical dilemmas permeate the criminal justice. At every level, in each segment of the system, people are exercising discretion that will impact on the fate of an individual and security of the community.
|
A biblical view of business ethics
: Review three or four key principles that are important in understanding a Biblical view of business ethics. Give examples of how you have (or might in the future) apply these principles. word limit 150 (5 principles: • Have a long-term perspective • ..
|
Significance of proteins, carbohydrates, fats and fiber
: The significance of proteins, carbohydrates, fats and fiber in a healthy diet.
|
Auditor role and responsibilities
: Compare the primary auditor objectives in auditing historical financial statements to auditing internal controls over financial reporting. Identify at least two (2) objectives that are the most significant in reducing the risk of reporting errors ..
|
List all of the variables that you will use
: List all of the variables that you will use (use valid variable names). Indicate whether the data type is string, integer, or double, and so on
|
Determine the medium through which the office staff prefers
: Determine the medium through which the office staff prefers to communicate, wether it is a presentation, e-mail or a printed presentation.
|
Concept of double taxation
: 1. Please describe the concept of "double taxation" and discuss which entity(ies) are subject to this type of taxation.
|
Validation and event handling in javascrip
: To complete this project you will write and submit one HTML file containing embedded CSS and JavaScript. The file will be called lab2.html. This file contains a registration form, which can be styled any way you like subject to the requirements be..
|
Diffusion innovation model
: The general health promotion proposal (DIABETES REDUCTION).
|