Write the pseudo code for the main program logic

Assignment Help Programming Languages
Reference no: EM131320982

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

ROW 6: 10 10 10 10 10 10 10 10 10 10
ROW 5: 10 10 10 20 20 20 20 10 10 10
ROW 4: 20 20 20 20 20 20 20 20 20 20
ROW 3: 20 20 30 30 30 30 30 30 20 20
ROW 2: 30 30 30 40 40 40 40 30 30 20
ROW 1: 40 40 50 50 50 50 50 40 40 40

Basic Implementation Write a program to:

1. Define a 6 * 10 two-dimensional integer array.

2. Fill the array with the predefined prices as shown above.

3. Prompt user to pick either a specific seat or a price.

4. When a user picks to choose by seat, ask for the preferred rows and seat number (eg. row:1, seat :1), make sure it is available and give a feedback on the price and mark the seat as "SOLD"

5. When a user specifies a price, find any seat with that price and give feedback on the seat row and number and mark the seat as "SOLD"

6. Mark sold seats by changing the price to 0.

7. Repeat the process until the user exits the program.

8. Write the pseudo code for the main program logic.

Reference no: EM131320982

Questions Cloud

Develop an action plan for creating your personal brand : Describe what you want your personal brand to be. In the next step, you develop an action plan for creating or enhancing your personal brand. Provide at least one clear example of an experience in this course that has helped, or may help, you move to..
What line is described by a regression equation : Write the general form of a regression equation that has a single predictor variable. Identify the criterion variable, the predictor variable, the regression constant, and the regression coefficient.
Write a java class which allows to vote by party affiliation : Write a Java class (VotingMachine.java) which allows one to vote by party affiliation and will also allow us to query the number of votes for each party and who won the election.
What is the after-tax holding-period return on the bond : A newly issued bond pays its coupons once annually. Its coupon rate is 5%, its maturity is 20 years, and its yield to maturity is 8%, and its face value is $1,000. Find the holding-period return for a 1-year investment period if the bond is selling a..
Write the pseudo code for the main program logic : When a user specifies a price, find any seat with that price and give feedback on the seat row and number and mark the seat as "SOLD". Repeat the process until the user exits the program. Write the pseudo code for the main program logic.
Which is worse--confound variance or error variance why : What are order effects, and how does counterbalancing help us deal with them?
Strategic decision partnering with the brotherhood : Did vineyard vines make a good strategic decision partnering with the brotherhood of the traveling plants?  How should vineyard vines proceed with its social media strategy?Was vineyard the right partnership for the brotherhood?
Proceeds from these new shares and operating improvement : Sosa Bus Company had earnings after taxes of $800,000 in the year 2011 with 200,000 shares of stock outstanding. On Jan 1 2010 the firm issued 50,000 new shares. Because of the proceeds from these new shares and other operating improvements, earnings..
Identify the variables of the marketing mix : Objectives - Identify the variables of the marketing mix and gain skill in combining them. Within the Discussion Board area, write 750-1,000 words that respond to the following questions with your thoughts, ideas, and comments

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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