no Hein and Tratnlrtg
H elptur R esou Ices
Tools r My Grades
Question 1 2 Soutnrz Er putis
The statement cin > 'num:
Selected Answer stores the keyboard input into the var
Dr. Zhizhang Shen
Solutions of Some Problems in Chapter 5
1. What would be the advantage and disadvantages of using a very large memory cell size, e.g.,
64 bits instead of the standard 8 bits?
A solution: The advantage of using a ver
using namespace std;
void jokeline(fstream &);
void punchline(fstream &);
fstream line1, line2;
cout < "Enter the name of the file holding the joke(joke.txt):" < endl;
cout < "Enter the
Write a program that will: 1) read an array of records from the
keyboard, 2) store this information to a binary file,
3) read from the binary file back to the array of records, 4) store
this information to a textfile. Left justify the
A store opens from Monday to Friday, write an enumerated
data type to represent each day, further define a variable
of that type and by using that variable prompt user to enter
sales figure for each day in an array. Then calculate the averag
Ly Le CS2255 Jan.8th,2016
/Write a program that will read scores into an array.
/The size of the array should be input by the user (dynamic array).
/ The program will find and print out the average of the scores.
/It will also call a function t
FILE EDIT VIEW PROJECT BUILD DEBUG TEAM TOOLS TEST WINDOW HELP xrun5creen 7 CI QUEkLauDEhiCtrQI )0 HaIDlndNabb '
Maincpp +3 X
EIEmployee and ProductionWorker Classes (Global Scope)
using namespace st
Bb Hlp and Trarnrng
Tools r My Grades
Question 1 1 out of 1 purnts
is the replacement ofslow arithmetic operations with fasterones.
Selected Answer a Strength rEdudlo
r t. 5:;
NMW Courses and 3rd Ire
Asglgnments QUGSUDI'I 1 1 am of 1 pumis
Class DIscussmn Memorylaclnonurewedm m: mljnffd
Selected Answer True
CurreCIAnswer _ True
Bb Hm and Trammg
Helpiur Resuumes Quesm" 2 1 cm cf1 Domis
Tools f My Grade
Eih Hem and Tieming
Tunis f My Grades
Proctor inie Eiachb 3rd Store
Coutses Need Heip?
Question 1 luul an pmms
Question 2 1qu of
HM Hal-In Courses Need Heip? Proctor inia Eiachb 3rd Si:er
$5.9m; QUGSHW 1 1 Uni of 1 pumis
Class Discussmn Aniiigmmmis:Iiitdinupnumai gamma
Assessments Selecied Answer. _ u Q11":
Carved Answer. 4 up")
an Hip and TlaHlllig
3. Step 1. Get the value for a, b, c and d.
2. Set the average (a+b+c)+(d^2)/4
3. Print the value of the average
13. Step 1. Get the value for John, N_1N_4 and T_1 and T_4
2. Set the value of i to 0
3. Check for every name (found=yes) and (i less
/*Write a program that will read monthly sales into
a dynamically allocated array. The
program will input
the size of the array from the user. It will call a
function that will find the yearly sum (the sum of all the sales).
It will also call a