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

  Draw five-vertex connected graph g that has no cut-vertices

Draw a 5-vertex connected graph G that has no cut-vertices, and then verify that G satisfies each of the following properties. Prove or disprove: If a simple graph G has no cut-edge, then every vertex pf G has even degree?

  Mst (minimum spanning tree)

A graph has distinct edge weights. Does its lightest edge have to belong to the MST (Minimum Spanning Tree)? Can its heaviest edge belong to the MST?

  Research paper surveying a popular algorithm

This assignment consists of writing a research paper surveying a popular algorithm. Your paper must conform to the American Psychological Association (APA) writing style. Your paper must use reputable scholarly references

  Implement the insertion sort algorithm for sorting an array

Implement the Insertion Sort algorithm for sorting an array of n elements. In this algorithm, the main loop index i runs from 1 to n-1. On the ith iteration, the element a[i] is "inserted" into its correct position among the subarray a[0..i].

  Find method searches the haystack array

Write a class, ArraySearch that has two methods - The find method searches the haystack array to see if the elements within are the same, which is determined by the equals method, as the needle.

  How output of leaky bucket policer can be fed in second

Illustrate how output of the leaky bucket policer can be fed into second leaky bucket policer so that two leaky buckets in series police average rate, peak rate, and burst size.

  Creating entity-relationship model

The manager for the Clearwater Traders wishes to collect the following information for each order placed by a consumer: consumer's name and address, item's size or color if applicable and the retail price of each item.

  Describe in detail how the blast algorithm works

Describe in detail how the BLAST algorithm works and What are the criteria for confidence for the strength of a BLAST hit

  Explain feasibility analysis for jobs of lrt algorithm

Study feasibility analysis for jobs of LRT algorithm when preemption is allowed. Which scheduling algorithm is best suited for high speed networks and why? Distinguish between static and dynamic systems.

  Construct a process-flow diagram

Construct a process-flow diagram that illustrates the process of determining the incident containment strategy that would be used in this scenario, and identify which containment strategy would be appropriate in this case, through the use of graphica..

  Describe a polynomial time algorithm

Describe a polynomial time algorithm that solves the following decision problem: Given a graph G and an edge f in it, does G have a cycle containing f?

  What sequence of characters would you push onto a stack

Hardware vendor XYZ Corp. claims that their latest computer will run 256 times faster than that of their competitor, Prunes, Inc.

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