Route Aircraft Raw Price Таx Final Number Price DXBtoIST 270 700 150 850 AUHTODEL 220 850 200 1050 SHJTOJED 332 400 100 500 DXBtoDUB 230 900 270 1170 AUHTOCDG 207 300 150 450 Reads the Tickets data from user (Aircraft Number, Raw Price, Tax and Route) Calculates the Final price of the Tickets using the following formula FinalPrice = RawPrice + Tax Find the route that has the maximum tax charges. Display the array’s content on screen.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please code this for me in c++, functions/matrixes/arrays 

 

Write a function, called read that reads the book's information.
void read (double Ticket[][4], string Route [ ], int size)
}
Write a function, called Final Price that calculates the final price of the tickets
void Final_Price (double Ticket[][4],int size)
{
}
Write a function, called max Tax that finds and prints the route information
with the maximum tax charges
void max_Tax (double Ticket[][4], string Route [ ] ,int size)
{
}
Transcribed Image Text:Write a function, called read that reads the book's information. void read (double Ticket[][4], string Route [ ], int size) } Write a function, called Final Price that calculates the final price of the tickets void Final_Price (double Ticket[][4],int size) { } Write a function, called max Tax that finds and prints the route information with the maximum tax charges void max_Tax (double Ticket[][4], string Route [ ] ,int size) { }
Q1) Write a C+ program that manipulates two arrays which contain information about Airline
seat reservations. You as a programmer need to do the following
Define 2-D array of double Airline[5][4] that contains the data as follows
o Ticket [][0] represents the Aircraft Number
Ticket [][1] represents the Raw Price of the ticket
o Ticket [][2] represents the Taxes
Ticket [][3] represents the Final Price of the ticket.
Define 1-D array of string Route[5] that contains the name of flight route.
Route
Aircraft
Raw Price
Таx
Final
Number
Price
DXBtoIST
270
700
150
850
AUHTODEL
220
850
200
1050
SHJTOJED
332
400
100
500
DXBtoDUB
230
900
270
1170
AUHTOCDG
207
300
150
450
Reads the Tickets data from user (Aircraft Number, Raw Price, Tax and Route)
Calculates the Final price of the Tickets using the following formula
FinalPrice = RawPrice + Tax
Find the route that has the maximum tax charges.
Display the array's content on screen.
void read (double Ticket[ ][4], string Route[ ] ,int size);
void Final_Price (double Ticket[ ][4], int size);
void max_Tax(double Ticket[ ][4], string Route [ ],int size);
int main(){
double Ticket[5][4]; string Route [5];
read (Ticket, Route , 5);
...
retrun 0; }
Transcribed Image Text:Q1) Write a C+ program that manipulates two arrays which contain information about Airline seat reservations. You as a programmer need to do the following Define 2-D array of double Airline[5][4] that contains the data as follows o Ticket [][0] represents the Aircraft Number Ticket [][1] represents the Raw Price of the ticket o Ticket [][2] represents the Taxes Ticket [][3] represents the Final Price of the ticket. Define 1-D array of string Route[5] that contains the name of flight route. Route Aircraft Raw Price Таx Final Number Price DXBtoIST 270 700 150 850 AUHTODEL 220 850 200 1050 SHJTOJED 332 400 100 500 DXBtoDUB 230 900 270 1170 AUHTOCDG 207 300 150 450 Reads the Tickets data from user (Aircraft Number, Raw Price, Tax and Route) Calculates the Final price of the Tickets using the following formula FinalPrice = RawPrice + Tax Find the route that has the maximum tax charges. Display the array's content on screen. void read (double Ticket[ ][4], string Route[ ] ,int size); void Final_Price (double Ticket[ ][4], int size); void max_Tax(double Ticket[ ][4], string Route [ ],int size); int main(){ double Ticket[5][4]; string Route [5]; read (Ticket, Route , 5); ... retrun 0; }
Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education