List all of the variables that you will use

Assignment Help Data Structure & Algorithms
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 _____________

Reference no: EM13761828

Questions Cloud

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).

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  The definitions associated with graphs.

Understand the definitions associated with graphs. a. Connected undirected graph; loop and cycle; DAG; simple path; strongly connected graph; weakly connected graph; complete graph

  Describe sorting algorithms and how they work

Describe sorting algorithms and how they work

  Doubly linked list

Write a class that maintains the top 10 scores for a game application, implementing the add and remove methods but using a doubly linked list instead of an array. Program has to be written in java

  Creating an automated checkout program

A local department store employee you to create an automated checkout program to expedite customers in a hurry. The checkout line can only allow 5-products for any one purchase.

  Identify data structures to organize typical file cabinet

Identify at least two data structures that are used to organize a typical file cabinet. Why do you feel it is necessary to emulate these types of data structures in a computer program?

  Analyze the time-space complexity of algorithms

How a vEB tree can be used to support these three operations and analyze the time/space complexity of your algorithms.

  Find the price of the pizza per square inch

Given the radius, in inches, and price of a pizza, design an algorithm to find the price of the pizza per square inch.

  Question 1 explain the trend that views software as a

question 1 explain the trend that views software as a service rather than a product. what effect has this trend had on

  Write down a cumulative 10- to 12-page paper incorporating

write a cumulative 10- to 12-page paper incorporating your prior work. solve the design problems of your virtual

  Develop a flowchart associated with an hiim department

Develop a flowchart associated with an HIIM Department

  Create a data flow diagram

Create a data flow diagram for Online library management system. It should include search, hold, add items, issue, recall, and add user. It should support books, dvds, and cds. The flows should include each data element, the levels must be balance..

  Design a control unit for simple hand held video game

Create a control unit for a simple hand held video game in which a character on the display catches objects. Only demonstrate the transition diagram

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd