Question 3 (25 marks). There exists an engineering firm that is producing different products using automated systems. You have been asked to write programs to help automate some activities in the firm. You are part of a team in the software engineering processes. The firm deals with processing of support beams of aircrafts. The dimensions of the beam vary per aircraft type. Using the situation below, solve the problem for your teammates. Table 1: Beam information Name Product category Year City of origin Country Batch number Height Length with Density Table 2: types of aircrafts A F Table 3: Lenght of beams taken A В D E F 1 4.05 8 9 6.01 6.08 5.4 2 4.44 8.1 9 6.10 6.10 5.6 3 4.51 7.9 9.02 6.10 6.20 5.7 4 4.35 8 9.01 6.08 6.07 5.6 5 4.32 9.07 6.18 6.18 5.9 a. Write a structure for Table 1. 5 marks. b. Write a class for Table 1. 5 marks. c. Using multidimensional arrays, write the arrays in C++ language for Table 3. 5 marks. d. Before the int main() function, declare 5 objects for the class for Table 1. 5 marks. e. Using two for loops and two dimensional arrays, write a program to calculate the average length for each type of beam. 5 marks.

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 solve completely question 3b to question 3e in c++ programming language
Question 3 (25 marks).
There exists an engineering firm that is producing different products using automated
systems. You have been asked to write programs to help automate some activities in the
firm. You are part of a team in the software engineering processes. The firm deals with
processing of support beams of aircrafts. The dimensions of the beam vary per aircraft type.
Using the situation below, solve the problem for your teammates.
Table 1: Beam information
Name
Product category
Year
City of origin
Country
Batch number
Height
Length
with
Density
Table 2: types of aircrafts
A
B
D
E
F
Table 3: Lenght of beams taken
A
В
D
E
F
1
4.05
8
6.01
6.08
5.4
2
4.44
8.1
6.10
6.10
5.6
3
4.51
7.9
9.02
6.10
6.20
5.7
4
4.35
8
9.01
6.08
6.07
5.6
4.32
8
9.07
6.18
6.18
5.9
a. Write a structure for Table 1. 5 marks.
b. Write a class for Table 1. 5 marks.
c. Using multidimensional arrays, write the arrays in C++ language for Table 3. 5
marks.
d. Before the int main() function, declare 5 objects for the class for Table 1. 5 marks.
e. Using two for loops and two dimensional arrays, write a program to calculate the
average length for each type of beam. 5 marks.
Transcribed Image Text:Question 3 (25 marks). There exists an engineering firm that is producing different products using automated systems. You have been asked to write programs to help automate some activities in the firm. You are part of a team in the software engineering processes. The firm deals with processing of support beams of aircrafts. The dimensions of the beam vary per aircraft type. Using the situation below, solve the problem for your teammates. Table 1: Beam information Name Product category Year City of origin Country Batch number Height Length with Density Table 2: types of aircrafts A B D E F Table 3: Lenght of beams taken A В D E F 1 4.05 8 6.01 6.08 5.4 2 4.44 8.1 6.10 6.10 5.6 3 4.51 7.9 9.02 6.10 6.20 5.7 4 4.35 8 9.01 6.08 6.07 5.6 4.32 8 9.07 6.18 6.18 5.9 a. Write a structure for Table 1. 5 marks. b. Write a class for Table 1. 5 marks. c. Using multidimensional arrays, write the arrays in C++ language for Table 3. 5 marks. d. Before the int main() function, declare 5 objects for the class for Table 1. 5 marks. e. Using two for loops and two dimensional arrays, write a program to calculate the average length for each type of beam. 5 marks.
Expert Solution
Step 1

The answer is given below:-

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
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