logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Sina AntiqueePsychology
(5/5)

675 Answers

Hire Me
expert
Bhargav AppasaniiEngineering
(/5)

972 Answers

Hire Me
expert
Vikrant BansalComputer science
(5/5)

716 Answers

Hire Me
expert
Luis RiveraFinance
(5/5)

809 Answers

Hire Me
C++ Programming

Read the seats prices into a 2D dynamic array. The seat prices are stored in a text file ‘prices.txt’. User double pointer for the prices array.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Summative 2020

To raise money for the homeless shelter in their community, School Without Walls, Class of 2020 is selling tickets for a play at their school. The play will take place in the school auditiorium. The rows in auditoriam are numbered from 0 to 14. There is 15 row of seats. Each odd # row has 15 seats and each even # row has 20 seats. See the figure below for the seating chart.

 

0

1

2

3

4

5

6

7

8

9

0

1

2

3

4

5

6

7

8

9

Row0

X

#

X

#

X

#

X

#

X

#

X

#

X

X

X

X

X

X

X

X

Row1

X

#

X

#

X

#

X

#

X

#

X

#

X

X

X

 

 

 

 

 

Row2

X

#

X

#

X

#

X

#

X

#

X

#

X

X

X

X

X

X

X

X

Row3

X

#

X

#

X

#

X

#

X

#

X

#

X

X

X

 

 

 

 

 

Row4

X

#

X

#

X

#

X

#

#

#

#

#

#

#

#

#

X

X

X

X

Row5

X

#

#

#

#

#

#

#

#

#

#

#

#

#

#

 

 

 

 

 

Row6

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

Row7

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

 

 

 

 

 

Row8

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

Row9

#

#

X

#

X

#

X

#

X

#

X

#

X

X

X

 

 

 

 

 

Row10

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

Row11

#

#

#

#

#

#

#

#

#

#

#

#

#

#

#

 

 

 

 

 

Row12

X

#

X

#

X

#

X

#

X

#

X

#

X

X

X

X

X

X

X

X

Row13

X

#

X

#

X

#

X

#

X

#

X

#

X

X

X

 

 

 

 

 

Row14

X

#

X

#

X

#

X

#

X

#

X

#

X

X

X

X

X

X

X

X


Seates that are represented by an ‘X’ are taken and available seats are represente by ‘#’.

Design and implement a program that will perform the following tasks.

  1. Read the seats prices into a 2D dynamic array. The seat prices are stored in a text file ‘prices.txt’. User double pointer for the prices array.
  2. Display a seating chart. The seating chart is stored in a text file ‘seat.txt’.
  3. Prompt the user to input:
  • Input the row number
  • Input the seat number

Display the ticket price

Update the seating chart.

  1. Display the dollar amount from all tickets sold.
  2. Display the number of seats sold
  3. Display the number of available seats

Input Validation:

  1. Do not accept row number of seat number that do not exist
  2. Check seat availability before sale.

 

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme