Need help with my IT all i need is someone to correct the error

Jan 21st, 2014
Sigchi4life
Category:
Programming
Price: $10 USD

Question description

INF 231 Week 5 Assignment Final Project.cpp I need help i did the work all i need to someone to correct the error this what my teacher said


The reason for the compiler errors that you get is that you have a huge bunch of variables, one group per each section in your program, but don't use them in the appropriate place. I'm referring to the variables "quarterX", "dimeX", "nickelX", and "pennyX" (where "X" is 1, 2, 3, and 4.)  If you double-check carefully which variables you use in which section, you will notice the discrepancies, which cause the compiler errors.

A. In section "second possible way" and also in section "Third possible way", you use in the long "cout" statement variable "penny1" instead of, respectively, "penny2" and "penny3".

B. In section "Fourth possible way" you use in the long "cout" statement several variables that haven't been assigned any value: "quarter4", "dime4", and "nickel4".

C. In section "Third possible way" you use variable "dime1" in the computations (but should use "dime3"); and you use "quarter2" (but should use "quarter3").

If you fix all of that, the program will compile.  More tests and changes are needed, though, before a fully functioning program is finished. (By the way, you use a very complicated logic -- I don't see the need for the four "sections" at all, as I think that a single such "section" should suffice.)

Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Carnegie Mellon University
PREMIUM TUTOR

Studypool has helped 1,244,100 students

8 Reviews


Summary
Quality
Communication
On Time
Value
darnay
Dec 3rd, 2016
" The best tutor out there!!!! "
dontuwannaknow
Nov 24th, 2016
" Excellent work as always thanks so much "
SjSurvivor143
Nov 10th, 2016
" Thanks for the help. "
ddg82
Nov 1st, 2016
" Thanks, good work "
tinytim47
Oct 19th, 2016
" Wow this is really good.... didn't expect it. Sweet!!!! "
jestin7
Oct 10th, 2016
" This tutor is great! "
mixedballz
Oct 5th, 2016
" excellent work as always thanks for the help "
lilmoe415
Sep 26th, 2016
" Thank you, Thank you, for top quality work, this is your guy!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1827 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors