Homework c++ , programming homework help

Please complete the following from your textbook.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Programming Projects for Chapter 7 Page: 458 & 459, #15 (Computation) AND #16 (Computation)

Programming Projects for Chapter 8 Page: 508 &509, #4 (Data processing) AND #8 (Data processing)

NOTE PLEASE SUBMIT ASSIGNMENT AS A WORD DOCUMENT OR PDF ONLY.

I WILL NOT ACCEPT HAND WRITTEN ASSIGNMENTS IN PERSON OR UPLOADED TO BLACKBOARD OR JPEG FORMAT.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

I WILL NEED TO SEE YOUR EXECUTED CODE SCREENSHOT IN: VISUAL STUDIO, C++ SHELL, CODE CHEF ON ANY ONLINE COMPILER.

which is 4 questions 15, 16, 4, 8.

Chrome
File
Edit
View History
Bookmarks
People
Window
Help
52% O Sun 8:01 PM
QE
OOO
X
New Tab
6 C++ for En x
G
a Amazon.co X Vikings PDF EEGR 202 9 X M Inbox (107) x 2017_Sprin x M Inbox (1) Bb Course Mat X
file:///Users/Dahoom/Desktop/C++%20for%20Engineers%20and%20Scientists%204th%20Edition.pdf
b. Read the file created in Exercise 7a, sort the data alphabetically by city name, and display
the data.
Chapter 8
509
Chapter Summary
8. (Data processing) A bank’s customer records are to be stored in a file and read into a set of
arrays so that a customer’s record can be accessed randomly by account number. Create the file
by entering five customer records, with each record consisting of an integer account number
(starting with account number 1000), a first name (maximum of 10 characters), a last name
(maximum of 15 characters), and a double-precision number for the account balance.
After the file is created, write a C++ program that requests a user-input account number and
displays the corresponding name and account balance from the file.
9. (Inventory) Create an ASCII file with the following data, or use the shipped.dat file available
on this book’s Web site. The headings aren’t part of the file but indicate what the data represents.
Shipped
Tracking Part
First
Last
Company
Date
Number Number Name
Name
04/12/11 D50625 74444 James Lehoff Rotech
04/12/11 D60752 75255 Janet
Lezar
Rotech
04/12/11 D40295 74477 Bill
McHenry
Rotech
04/12/11
D23745
74470 Diane
Kaiser
Rotech
04/12/11 D50892 75155 Helen Richardson NapTime
The format of each line in the file is identical, with fixed-length fields defined as follows:
20170320095059912.pdf
Show All
X
19
26
WARNI
18 7:36
52% O Sun 8:00 PM
Sun 8:00 PM QE
Chrome File Edit View History Bookmarks People Window Help
OOO a Amazon.co * Vikings x PDF EEGR 2029 x M Inbox (107) x 2017_Sprin x M Inbox (1) – X
G file:///Users/Dahoom/Desktop/C++%20for%20Engineers%20and%20Scientists%204th%20Edition.pdf
Bb Course Mat X
New Tab
х
6 C++ for En x

T
Test 2:
Test 3:
Test 4:
Test 5:
Test 6:
T
T
F
F
т
T
T
F
T
T
F
F
F
F
T
F
F
F
T
T
T
F
F
F
13. (Modify) Modify the function you wrote for Exercise 12 so that each test is stored in column
order rather than row order.
14. (Data processing) Construct a three-dimensional weather array for a two-week time period.
Include this array in a C++ program that displays the temperatures correctly in response to any
of the following user requests:
Any day’s high and low temperatures
Average high and low temperatures for a given month
Month and day with the highest temperature
Month and day with the lowest temperature
15. (Computation) A magic square is a square of numbers with N rows and N columns, in which
each integer value from 1 to (N * 1) appears exactly once, and the sum of each column, cach
row, and each diagonal is the same value. For example, Figure 7.21 shows a magic square in
Chapter 7
459
Chapter Summary
which N-3 and the sum of the rows columns and diagonals is 15 Write a program that
20170320095059912.pdf
Show All
X
I

26
WARNI
19 7:36
Chrome
File
Edit
View History
Bookmarks
People
Window Help
52% O Sun 8:01 PM
QE
OOO
a Amazon.co X
Vikings
PDF EEGR 202 9 X
M Inbox (107) x
2017_Sprin x
M Inbox (1) – x
Bb Course Mat x
New Tab
6 C++ for En x
G
file:///Users/Dahoom/Desktop/C++%20for%20Engineers%20and%20Scientists%204th%20Edition.pdf
file created in Exercise 2a. The data is arranged in the file so that each group of numbers is
preceded by the number of data items in the group. Therefore, the first number in the file,
5, indicates that the next five numbers should be grouped together. The number 4 indicates
that the following four numbers are a group, and the 6 indicates that the last six numbers
are a group. (Hint: Use a nested loop. The outer loop should terminate when the end of file
has been encountered.)
3. (Data processing) Write a C++ program that allows the user to enter the following informa-
tion from the keyboard for each student in a class (up to 20 students):
Exam 1 Grade Exam 2 Grade Homework Grade Final Exam Grade
Name
ID No.
For each student, your program should first calculate a final grade, using this formula:
Final Grade = 0.20 x Exam 1 +0.20 x Exam 2 + 0.35 x Homework + 0.25 x Final Exam
Then assign a letter grade on the basis of 90-100 = A, 80-89 – B, 70-79 – C, 60-69 – D, and
less than 60 = F. All the information, including the final grade and the letter grade, should then
be displayed and written to a file.
4. (Data processing) Write a C++ program that permits users to enter the following information
about your small company’s 10 employees and then writes the information to a file:
Sex (M/F) Hourly Wage Years with the Company
5. (Data processing) Write a C++ program that reads the file created in Exercise 4, permits the
user to change the hourly wage or years for any employee, and creates a new updated file.
6. (Data processing) Write a C++ program that reads the file created in Exercise 4 one record
at a time, asks for the number of hours each employee worked each month, and calculates and
displays each employee’s total pay for the month.
7. (Data processing) a. You have collected information about cities in your state. You decide to
store each city’s name, population, and mayor in a file. Write a C++ program to accept data for
a number of cities from the keyboard and store the data in a file in the order in which it’s
entered.
b. Read the file created in Exercise 7a, sort the data alphabetically by city name, and display
the data.
20170320095059912.pdf
Show All
X
19
26
O
WARNI
18 7:36
Chrome
File
Edit
View History
Bookmarks
People
Window
Help
52% O Sun 8:01 PM
QE
OOO
X
New Tab
6 C++ for En x
G
a Amazon.co X Vikings PDF EEGR 202 9 X M Inbox (107) x 2017_Sprin x M Inbox (1) Bb Course Mat X
file:///Users/Dahoom/Desktop/C++%20for%20Engineers%20and%20Scientists%204th%20Edition.pdf
b. Read the file created in Exercise 7a, sort the data alphabetically by city name, and display
the data.
Chapter 8
509
Chapter Summary
8. (Data processing) A bank’s customer records are to be stored in a file and read into a set of
arrays so that a customer’s record can be accessed randomly by account number. Create the file
by entering five customer records, with each record consisting of an integer account number
(starting with account number 1000), a first name (maximum of 10 characters), a last name
(maximum of 15 characters), and a double-precision number for the account balance.
After the file is created, write a C++ program that requests a user-input account number and
displays the corresponding name and account balance from the file.
9. (Inventory) Create an ASCII file with the following data, or use the shipped.dat file available
on this book’s Web site. The headings aren’t part of the file but indicate what the data represents.
Shipped
Tracking Part
First
Last
Company
Date
Number Number Name
Name
04/12/11 D50625 74444 James Lehoff Rotech
04/12/11 D60752 75255 Janet
Lezar
Rotech
04/12/11 D40295 74477 Bill
McHenry
Rotech
04/12/11
D23745
74470 Diane
Kaiser
Rotech
04/12/11 D50892 75155 Helen Richardson NapTime
The format of each line in the file is identical, with fixed-length fields defined as follows:
20170320095059912.pdf
Show All
X
19
26
WARNI
18 7:36
Chrome
File
Edit
View
History Bookmarks
People
Window Help
42% O Sun 8:38 PM
Q5
OOO
a Amazon. X
Vikings X
PDF EEGR 202 x
M Inbox (10 x
2017_Spix
M Inbox (2) X
Bb Course MX
New Tab
C++ for X
S View Mes X
c
file:///Users/Dahoom/Desktop/C++%20for%20Engineers%20and%20Scientists%204th%20Edition.pdf
☆ O
1
3
5
7
2
2
Figure 7.21 A magic square
16. (Computation) Among other applications, Pascal’s triangle (see Figure 7.22) provides a
means of determining the number of possible combinations of n things taken r at a time.
For example, the number of possible combinations of five people (n = 5) taken two at a time
(r = 2) is 10.
Each row of the triangle begins and ends with 1. Every other element in a row is the sum of
the element directly above it with the element to the left of the one above it. That is,
element[n][1] = element[n-1][r] + element[n-1][r-1]
Using this information, write and test a C++ program to create the first 11 rows of a two-
dimensional array representing Pascal’s triangle. For any given value of n less than 11 and r less
than or equal to n, the program should display the correct element. Use your program to deter-
mine in how many ways a committee of 8 can be selected from a group of 10 people.
20170320095059912.pdf
Show All
X
26
WARNI
18 7:36
Chrome
File
Edit
View History Bookmarks
People
Window Help
40% O Sun 8:42 PM
Q5
OOO
a Amazon. X
Vikings x
PDF EEGR 202 x
M Inbox (10 x
2017_Spix
M Inbox (2) X
Bb Course M X
New Tab
C++ for X
S View Mes X
G
file:///Users/Dahoom/Desktop/C++%20for%20Engineers%20and%20Scientists%204th%20Edition.pdf
* O
460
Arrays
n
0
1
2
3
4
5 …
0
1
1
1
1
2
1
2
1
3 1
3
3
1
4
1
4
6
4
1
5
1
5
10
10
5 1
Figure 7.22 Pascal’s triangle
20170320095059912.pdf
Show All
X
26
WARNI
18 7:36

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER