void thirdstudentInfo() 219 220 cout<<" cout<<" ."<

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Question

How do I Desk Check this?
I made a program using DEV C++ but I do not know how to code this.

|"<cendl;
|"<<endl;
=======---===="<<endl;
cout<<"
enough; we must apply. Being willing is not enough; we must do. \"
-Leonardo da Vinci
214
215
cout<<"
216
cout<<"
217
218
219
void thirdstudentInfo()
220 - {
========="<<endl;
|"<<endl;
221
cout<<"
| NAME: Mayer, Dav.
| COURSE: Computer Engineering
| #: 20777084
| FAVORITE HOBBY: Playing computer games.
| FAVORITE SERIES: Sherlock Holmes
| FAVORITE MUSIC GENRE: Pop & R&B
| FAVORITE QUOTATION: \"Fear regret more than failure.\" -Taryn Rose
222
cout<<"
223
cout<<"
|"<<endl;
cout<<"
cout<<"
|"«<endl;
224
|"<cendl;
|"<<endl;
|"<<endl;
1"<<endl;
=="<<endl;
225
226
cout<<"
cout<<"
cout<<"
cout<<"
227
228
229
230
}
231
232
void fourthstudentInfo()
233 - {
234
cout<<"
===="<<endl;
| NAME: Mayer, Davy.
i COURSE: Computer Engineering
| #: 20860997
| FAVORITE HOBBY: Watching Netflix
| FAVORITE SERIES: Grey's Anatomy
FAVORITE DRINK: Iced Caramel Macchiato
i FAVORITE QUOTATION: \"When everything seems to be going against you, remember that
235
cout<<"
|"<<endl;
236
cout<<"
|"<<endl;
cout<<"
|"<<endl;
237
cout<<"
cout<<"
|"<<endl;
İ"««endl;
|"<<endl;
T"<<endl;
the airplane takes off against the wind not with it.\" -Henry Ford |"<<endl;
========"<<endl;
238
239
240
cout<<"
241
cout<<"
242
cout<<"
243
cout<<"
244
245
246
int main()
247 E {
char choice;
char infochoice;
char y, n, answer;
int steel, lumber, plywood, pvc, hBlock;
int jBox, ewire, CBreaker, eTape, fLamp;
int cement, bAn, sealant, gypsum, sand;
double cement2, bAn2, sealant2, gypsum2, sand2;
double steel2, lumber2, plywood2, pvc2, hBlock2;
double GTamount, NTamount, TAtax;
double jBox2, ewire2, cBreaker2, etape2, fLamp2;
248
249
250
251
252
253
254
255
256
257
258
displayHeader );
cout<<endl;
while (true)
259
260
261
262
displaychoices ();
263
cout<<endl;
cout<<"
264
265
Please enter the number you want to select:";
266
cin>>choice;
system ("CLS");
267
Transcribed Image Text:|"<cendl; |"<<endl; =======---===="<<endl; cout<<" enough; we must apply. Being willing is not enough; we must do. \" -Leonardo da Vinci 214 215 cout<<" 216 cout<<" 217 218 219 void thirdstudentInfo() 220 - { ========="<<endl; |"<<endl; 221 cout<<" | NAME: Mayer, Dav. | COURSE: Computer Engineering | #: 20777084 | FAVORITE HOBBY: Playing computer games. | FAVORITE SERIES: Sherlock Holmes | FAVORITE MUSIC GENRE: Pop & R&B | FAVORITE QUOTATION: \"Fear regret more than failure.\" -Taryn Rose 222 cout<<" 223 cout<<" |"<<endl; cout<<" cout<<" |"«<endl; 224 |"<cendl; |"<<endl; |"<<endl; 1"<<endl; =="<<endl; 225 226 cout<<" cout<<" cout<<" cout<<" 227 228 229 230 } 231 232 void fourthstudentInfo() 233 - { 234 cout<<" ===="<<endl; | NAME: Mayer, Davy. i COURSE: Computer Engineering | #: 20860997 | FAVORITE HOBBY: Watching Netflix | FAVORITE SERIES: Grey's Anatomy FAVORITE DRINK: Iced Caramel Macchiato i FAVORITE QUOTATION: \"When everything seems to be going against you, remember that 235 cout<<" |"<<endl; 236 cout<<" |"<<endl; cout<<" |"<<endl; 237 cout<<" cout<<" |"<<endl; İ"««endl; |"<<endl; T"<<endl; the airplane takes off against the wind not with it.\" -Henry Ford |"<<endl; ========"<<endl; 238 239 240 cout<<" 241 cout<<" 242 cout<<" 243 cout<<" 244 245 246 int main() 247 E { char choice; char infochoice; char y, n, answer; int steel, lumber, plywood, pvc, hBlock; int jBox, ewire, CBreaker, eTape, fLamp; int cement, bAn, sealant, gypsum, sand; double cement2, bAn2, sealant2, gypsum2, sand2; double steel2, lumber2, plywood2, pvc2, hBlock2; double GTamount, NTamount, TAtax; double jBox2, ewire2, cBreaker2, etape2, fLamp2; 248 249 250 251 252 253 254 255 256 257 258 displayHeader ); cout<<endl; while (true) 259 260 261 262 displaychoices (); 263 cout<<endl; cout<<" 264 265 Please enter the number you want to select:"; 266 cin>>choice; system ("CLS"); 267
266
cin>>choice;
system ("CLS");
267
268
269
Switch (choice)
{
case '1':
270
271 -
272
273
bomConstruction ();
cout<cendl;
cout<cendl;
cout<«"Enter the (QTY) of materials"<<endl;
274
275
276
277
(QTY) : ";
278
cout<<"steel Bar
cin>>steel;
cout<<"Lumber Wood
279
280
(QTY) : ";
cin>>lumber;
cout<«"Plywood
cin>»plywood;
cout<<"PVC Pipe
cin>>pvc;
cout<<"Hollow Block
281
282
(QTY) : ";
283
284
(QTY) : ";
285
286
(QTY) : ";
cin>>hBlock;
cout<cendl;
287
288
289
steel2 = steel * 230;
lumber2 = lumber * 178;
plywood2 = plywood
pvc2 = pvc * 608;
hBlock2 = hBlock * 18;
GTamount = steel2 + lumber2 + plywood2 + pvc2 + hBlock2;
TAtax = GTamount * (e.12);
NTamount = GTamount - TAtax;
290
291
292
688;
293
294
295
296
297
298
displayTAtax();
cout<<fixed<<setprecision(2);
cout<<TAtax<cendl;
displayNTamount();
cout<<NTamount<cendl;
displayGTamount ();
cout<<GTamount;
299
зее
301
302
303
304
305
306
break;
307
з88
309
case '2':
310
bomElectrical();
cout<cendl;
cout<<endl;
cout<<"Enter the (QTY) of materials"<<endl;
cout<<"Junction Box
311
312
313
314
(QTY) : ";
315
316
cin>>jBox;
317
cout<<"Electrical Wire
(QTY) : ";
318
cin>>ewire;
319
cout<<"Circuit Breaker
(QTY) : ";
Transcribed Image Text:266 cin>>choice; system ("CLS"); 267 268 269 Switch (choice) { case '1': 270 271 - 272 273 bomConstruction (); cout<cendl; cout<cendl; cout<«"Enter the (QTY) of materials"<<endl; 274 275 276 277 (QTY) : "; 278 cout<<"steel Bar cin>>steel; cout<<"Lumber Wood 279 280 (QTY) : "; cin>>lumber; cout<«"Plywood cin>»plywood; cout<<"PVC Pipe cin>>pvc; cout<<"Hollow Block 281 282 (QTY) : "; 283 284 (QTY) : "; 285 286 (QTY) : "; cin>>hBlock; cout<cendl; 287 288 289 steel2 = steel * 230; lumber2 = lumber * 178; plywood2 = plywood pvc2 = pvc * 608; hBlock2 = hBlock * 18; GTamount = steel2 + lumber2 + plywood2 + pvc2 + hBlock2; TAtax = GTamount * (e.12); NTamount = GTamount - TAtax; 290 291 292 688; 293 294 295 296 297 298 displayTAtax(); cout<<fixed<<setprecision(2); cout<<TAtax<cendl; displayNTamount(); cout<<NTamount<cendl; displayGTamount (); cout<<GTamount; 299 зее 301 302 303 304 305 306 break; 307 з88 309 case '2': 310 bomElectrical(); cout<cendl; cout<<endl; cout<<"Enter the (QTY) of materials"<<endl; cout<<"Junction Box 311 312 313 314 (QTY) : "; 315 316 cin>>jBox; 317 cout<<"Electrical Wire (QTY) : "; 318 cin>>ewire; 319 cout<<"Circuit Breaker (QTY) : ";
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY