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

  Give time algorithm that outputs satisfying assignment

Find out  whether there is an assignment of true/false values to the literals such that at least a*m clauses will be true. Note that 3-SAT(1) is exactly the 3-SAT problem. Give an O(m*n)-time algorithm that outputs a satisfying assignment for 3-S..

  Implement lazy deletion

Redo the binary search tree class to implement lazy deletion. Note cautiously that this affects all of the routines.

  Problem 1 n vehicles occupy squares 1 1 through n 1 ie the

problem 1. n vehicles occupy squares 1 1 through n 1 i.e. the bottom row of an n times n grid. the vehicles must be

  A[0..n-1] and b[0...n-1] are sorted arrays

A[0..n-1] and B[0...n-1] are sorted arrays where each contains n numbers. Design an O(n*log(n)) algorithm to find the median of all elements in arrays X and Y.

  Give algorithm to find schedule to obtain maximum profit

Give an algorithm to find the schedule that obtains the maximum amount of profit, assuming that all processing times are integers between 1 and n.

  Implementing ajax programming

In the AJAX scripts construct, refer to the DSN datasource as flamingo. Even though its not in your own folder or directory, it has been set up as SYSTEM DSN, so your AJAX script will have access to it.

  Create an array dynamically

Write a program to accept a number representing how many first names the user will enter from the command line (5 names maximum), and the actual first names, from the command line.

  Supposing that the set of possible list values abcd sort

assuming that the set of possible list values abcd sort the following list in alphabetical order by the distribution

  Creating code for a class called arrayqsn

Create all the code for a class called ArrayQsn. This class will contain 2-techniques. The first technique runningSumMean accepts an array of ints as a parameter, and will return the mean of the values as a double.

  Describe an algorithm to play the game of nim

Describe an algorithm to play the Game of Nim using all of the three tools discussed in class (pseudocode, flowchart, hierarchy chart).

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

  Opens an output file with the external name

Design an algorithm that does the following: opens an output file with the external name number_list.dat, uses a loop to write the numbers 1 through 100 to the file and then closes the file.

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