Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6 . 1 Write a for - statement to display the numbers 1 through 1 0 on the screen. 6 . 2 Write a while
Write a forstatement to display the numbers through on the screen.
Write a whilestatement to display the numbers through on the screen.
The code below should display the numbers and on the screen. However, the code is
not working correctly. Correct the errors in the code.
int num ;
while num
cout num endl;
endwhile
The code below should display each salesperson's commission. The commission is calculated
by multiplying the salesperson's sales by The code is not working correctly. Correct the
errors in the code.
float sales ;
float commission ;
cout "Enter a sales amount: ;
cin sales;
while sales
Commission sales ;
cout commission endl;
endwhile
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started