Question: (a) The following code segments are erroneous. Correct the error(s) in each segment of code below. i) double mainint = 3000.0; double int =
(a) The following code segments are erroneous. Correct the error(s) in each segment of code below. i) double mainint = 3000.0; double int = 1.016 * mainint; cout < < setprecision (2) < < fixed; cout < < "The calculated amount is" < < int; ii) int t; cout < < "Enter a number: "; cin < < T; cout < < "Your number is " < < t; ii) X = 1; while ( x
Step by Step Solution
3.29 Rating (149 Votes )
There are 3 Steps involved in it
1 we are getting error because the variable name in... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
635d587fac88b_174760.pdf
180 KBs PDF File
635d587fac88b_174760.docx
120 KBs Word File
