By using c++programming, plz complete the coding

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
By using c++programming, plz complete the coding
#include<stdio.h>
int main(void) {
int base, height;
float area, moi, mod;
for (){
for () {
}
fprintf(fout, "%2d x %2d %16.2f %16.2f %16.2f\n", base, height, area, moi, mod);
return 0;
Transcribed Image Text:#include<stdio.h> int main(void) { int base, height; float area, moi, mod; for (){ for () { } fprintf(fout, "%2d x %2d %16.2f %16.2f %16.2f\n", base, height, area, moi, mod); return 0;
A lumber company needs to create a table of the engineering properties of its rectangular cross
section lumber. The dimensions of the wood are given as base and height in inches. The table
is to include the following information:
2 x
2 x
2 x
2 x
2468 -2
The company makes lumber with base sizes 2, 4, 6, 8, and 10 inches. The height sizes are 2,
4, 6, 8, 10, and 12 inches.
2 x 10
Write a program to produce a table with appropriate headings to show these values and the
computed engineering properties. Store the table in an output file lumberout.txt. Part of
the table is shown below:
Lumber Size
Cross sectional
2 x 12
4 x 2
4 x
4
4 x 6
4 x 8
4 x 10
4 x 12
cross sectional area
Area
moment of inertia:
4.00
8.00
12.00
16.00
20.00
24.00
8.00
16.00
24.00
32.00
40.00
48.00
section modulus -
1.33
10.67
36.00
85.33
-
166.67
288.00
base x height
2.67
21.33
72.00
base x height
12.0
Moment of
Inertia
170.67
333.33
576.00
base x height2
6.0
Section
Modulus
1.33
5.33
12.00
21.33
33.33
48.00
2.67
10.67
24.00
42.67
66.67
96.00
Transcribed Image Text:A lumber company needs to create a table of the engineering properties of its rectangular cross section lumber. The dimensions of the wood are given as base and height in inches. The table is to include the following information: 2 x 2 x 2 x 2 x 2468 -2 The company makes lumber with base sizes 2, 4, 6, 8, and 10 inches. The height sizes are 2, 4, 6, 8, 10, and 12 inches. 2 x 10 Write a program to produce a table with appropriate headings to show these values and the computed engineering properties. Store the table in an output file lumberout.txt. Part of the table is shown below: Lumber Size Cross sectional 2 x 12 4 x 2 4 x 4 4 x 6 4 x 8 4 x 10 4 x 12 cross sectional area Area moment of inertia: 4.00 8.00 12.00 16.00 20.00 24.00 8.00 16.00 24.00 32.00 40.00 48.00 section modulus - 1.33 10.67 36.00 85.33 - 166.67 288.00 base x height 2.67 21.33 72.00 base x height 12.0 Moment of Inertia 170.67 333.33 576.00 base x height2 6.0 Section Modulus 1.33 5.33 12.00 21.33 33.33 48.00 2.67 10.67 24.00 42.67 66.67 96.00
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
ADT and Class
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