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

  Implement the array-based stack class

Implement the array-based stack class - Use it in the client code to convert an infix expression into post-fix expression, and compute the result.

  Preepare a flowchart and give the pseudocode for searching

q1. describe an array.q2. what are the various implementations that can be used for an array?q3. provide the code that

  Write a xml schema for the validation of the document notes.

write a XML schema for the validation of the document notes.xml. Write the schema according to the following three approaches;1.- Based on the document structure2.- Structured (bottom-up design)3.- Type-based (top-down design)

  Explaining view of header and footer areas of worksheet

In which view can you see header and footer areas of worksheet?

  Binary search algorithm

Use the binary search algorithm to seach the list. (You might need to modify the algorithm given in this chapter to count the number of comparisons.)

  Creating an exception class and applet file

Create an applet document that prompts the user for an ID number and an age. Construct an Exception class and throw an Exception of that class if the ID is not in the range of valid ID numbers.

  Find running time of heap sort input sorted-ascending order

Determine the running time of Heap Sort if input is sorted in ascending order. Determine the running time of Heap Sort if input is sorted in descending order.

  Part 1 - report write a 2000-word report that describes a

part 1 - report write a 2000-word report that describes a suitable methodology from the literature for the purpose of

  Build b tree for the part table

Build B+ tree for the PART table with n = 6 pointers; illustrate how B+ tree expand (show several intermediate trees) and what final tree will look like.

  Discuss the business problem

Provide a clear statement of the aims and objectives of the data analytics study and the possible outcomes in terms of discovered knowledge and its potential application towards solution of the problem. In this section you need to discuss the busi..

  Insertion sort and merged using standard merging mechanism

Using "insertion sort" and then merged using standard merging mechanism, where k is value to be determined. How must be we select k in practice?

  Research and implement the sieve of eratosthenes

Research and implement the Sieve of Eratosthenes (also called prime sieve) algorithm. Researching and implementing algorithms is something I did frequently while consulting and any programmer must be able to do this

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