LO: (Apply] Students will write loops that iterate over every value in a range. Some marathon organizers are advertising the distances of their races using kilometers. Help them explain the races to participants who are unfamiliar with the metric system. Print a line for each length of race that explains approximately how long it is in miles. The races are organized in increments of 5km. There is a 5km, a 10km, and so on, all the way up to a 40km race. There are approximately 0.621 miles in a kilometer. Miles should be rounded to the nearest whole number. Follow this format: A Skm race is approximately 3 miles long. maln.cpp O O New X Full Screen 1 #include using namespace std; * Displays how long each race is in kilometers and miles. 6. */ 7- int main() { 8 10 11 return 0; 12 } 13

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
LO: (Apply) Students will write loops that iterate over every value in a range.
Some marathon organizers are advertising the distances of their races using kilometers. Help them explain the races to participants who are unfamiliar with the metric system. Print a line for each length of race that explains
approximately how long it is in miles.
The races are organized in increments of 5km. There is a 5km, a 10km, and so on, all the way up to a 40km race. There are approximately 0.621 miles in a kilometer. Miles should be rounded to the nearest whole number.
Follow this format:
A Skm race is approximately 3 miles long.
O New
I Full Screen ¢
maln.cpp 0
1 #include <iostream>
2 using namespace std;
4
* Displays how long each race is in kilometers and miles.
6
*/
7- int main() {
return 0;
12 }
13
Transcribed Image Text:LO: (Apply) Students will write loops that iterate over every value in a range. Some marathon organizers are advertising the distances of their races using kilometers. Help them explain the races to participants who are unfamiliar with the metric system. Print a line for each length of race that explains approximately how long it is in miles. The races are organized in increments of 5km. There is a 5km, a 10km, and so on, all the way up to a 40km race. There are approximately 0.621 miles in a kilometer. Miles should be rounded to the nearest whole number. Follow this format: A Skm race is approximately 3 miles long. O New I Full Screen ¢ maln.cpp 0 1 #include <iostream> 2 using namespace std; 4 * Displays how long each race is in kilometers and miles. 6 */ 7- int main() { return 0; 12 } 13
LO: (Analyze) Students will choose the type of loop best suited to the task.
LO: (Remember)] Students will locate the start, stop. and step parameters of a loop.
Write a program that counts by 19s from 615 to 900 (inclusive). Print each number.
maln.cpp O
1 #include <iostream>
2 using namespace std;
New
4- /*
* Counts by 195 from 615 to 900.
*/
7- int main() {
8
10
return 0;
11 }
Transcribed Image Text:LO: (Analyze) Students will choose the type of loop best suited to the task. LO: (Remember)] Students will locate the start, stop. and step parameters of a loop. Write a program that counts by 19s from 615 to 900 (inclusive). Print each number. maln.cpp O 1 #include <iostream> 2 using namespace std; New 4- /* * Counts by 195 from 615 to 900. */ 7- int main() { 8 10 return 0; 11 }
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 2 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education