Write program that prompt users to pick either seat or price

Assignment Help Data Structure & Algorithms
Reference no: EM131270333

A theatre seating chart is implemented as a two-dimensional array of ticket prices, like this:

AISLE

ROW     1         2          3          4          5          6         7          8         9          10
----------------------------------------------------------------------------------------
10       10        10        10        10        10        10        10        10        10        10
9         10        10        10        10        10        10        10        10        10        10
8         10        10        10        10        10        10        10        10        10        10
7         10        10        20        20        20        20        20        20        10        10
6         10        10        20        20        20        20        20        20        10        10
5         10        10        20        20        20        20        20        20        10        10
4         20        20        30        30        40        40        30        30        20        20
3         20        30        30        40        50        50        40        30        30        20
2         30        40        50        50        50        50        50        50        40        30
1         30        40        50        50        50        50        50        50        40        30

Write a program that prompts users to pick either a seat or a price. Mark sold seats by changing the price to 0. When a user specifies a seat, make sure it is available. When a user specifies a price, find any seat with that price starting at the front and working to the back of the theatre. Make sure you write your program using well defined functions.

You are to hand in:
Source code (well documented)
Input file (if used)
Sample tests for valid and invalid choices
Hierarchy Chart
User Guide

Reference no: EM131270333

Questions Cloud

Contribute to changes in the health care industry : Describe three important factors that contribute to changes in the health care industry. Propose three strategies that health care leaders can employ to lead their learning organizations in today's turbulent environment.
Best reflected in the price of the moisture plus line : Carmex Moisture Plus is priced between $2.49 and $2.99, a high price compared the $0.99 Carmex tube. Carmex managers estimated that female consumers would be willing to pay more for the sleek packaging, benefits, and additional ingredients found in t..
Influence behavior of the public : Various levels of government use taxes and fines to influence behavior of the public. The State of Iowa and Iowa cities use taxes on alcohol, tobacco, gambling, gasoline, pickup truck license plates, and speed camera fines for this end. Pick one o..
Find the marginal productivity of money : Find the marginal productivity of money in this case, and estimate the increase in production if an additional $50,000 is budgeted for the production of the product.
Write program that prompt users to pick either seat or price : Write a program that prompts users to pick either a seat or a price. Mark sold seats by changing the price to 0. When a user specifies a seat, make sure it is available.
Consider job in your organization : Consider a job in your organization, or one you are familiar with, Based on your knowledge or work experience and researches, what are some ways you could enrich the job?
Is the information contained in the articles reliable : Locate two articles from the University Library or the Internet and discuss the following, in 75 to 100 words per article: Is the information contained in the articles reliable? Explain. Are the authors credible or non-credible? Why or why not?
Define criteria for evaluation of ideas : You want to make a website of your bio-shop more customer friendly than other e-shops' webpages. identify the length of the session (more participants - longer session). Describe how you will get buy-in from participants. Define criteria for evaluati..
Macroeconomics differs from microeconomics : However, this simple distinction does not adequately describe how macroeconomics differs from microeconomics. For this assignment you need to identify and describe three differences between macroeconomics and microeconomics.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  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.

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