Running on a particular treadmill you burn 3.9 calories per minute. Write a program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes.
Q: Q#1: Write a program that prints the numbers from 1 to 1000 On the same line it should also print…
A: The problem is based on the basics of loops in python programming language.
Q: write a loop that will display numbers in reverse order from 20 to 0
A: A loop is used to handle the repeat of statements. They iterate block of codes multiple number of…
Q: Consider the following loop structure: Set x to 10 while (x is less than 50) Write the value of x in…
A: An algorithm is set of instructions that performs some task. From algorithm , trace the exact value…
Q: Q1] Write a program to generate the numbers following 2 8 9 ) on TextBox, by using Do Loop. 1 3 4 6…
A: Please find the answer below
Q: Write a program that asks the user to enter today’s sales for five stores. The program should then…
A: Following is the c++ program that takes as input from user sales of five stores and display the…
Q: Write a program that uses loops to collect data and calculate the average score over a number of…
A: Answer : TextWindow.Write("Enter number of students(1-10): ") nStudents = TextWindow.Read()…
Q: Write a for loop that display the following set of number: 0, 10, 20, 30, 40, 50, 60, 70, 60,…
A: I give the code in java along with output and code screenshot
Q: You are writing a program for a bookstore that has a membership rewards program. This membership…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Initialize…
Q: I need to write a program that calculates the number of private offices in a high rise building. The…
A: The given problem is related to programming language where the no of floors, no of private offices,…
Q: Question#2. The distance a vehicle travels can be calculated as fallout: Distance = Speed + Time For…
A: The java program is given below:
Q: The value of the variable A at the end of the loop is 1. int A =7; while (A>= 3) A -= 2;
A: In Step 2, I have provided ANSWER with C CODE, CODE SCREENSHOT and OUTPUT…
Q: Write a program that prompts the user to enter the number of students and each student’s name and…
A: Actually, the code has given below:
Q: PYTHON PROGRAMMING Write a loop that prints out the following numbers. Make sure to precisely…
A: for i in range (0,6,1): print(3*pow(2, i))
Q: fnal int NUMLLOOPS int numberofTimes NUMLLOOPS; while(numberofTimes++ < NUM LOOPS)…
A: 1. Loop control variable: In the given code, the loop control variable is “numberOfTimes” because,…
Q: the user to enter the number of times that they have run around a racetrack, and then uses a loop…
A: Below a program ON PYTHON that asks the user to enter the number of times that they have run around…
Q: The distance a vehicle travels can be calculated as follows: distance = speed time. For example, if…
A: Programming language is missing in the question. So we will answer this program in C++. If you want…
Q: Write a program that asks the user to enter a word. The program will then display the word for as…
A: SUMMARY: - Hence, we discussed all the points.
Q: Write a program uses a loop to have the user enter several numbers and keep a running total. The…
A: Import necessary library files. Declare a variable sum of type int and initialize it to 0. Start a…
Q: Write a loop that will print the numbers from 0 to 1000 in steps of 50. When the number is 800 or…
A: Algorithm: 1. after each iteration, i will be incremented by 50 ,i+=50 can also be written as i=i+50…
Q: Write a program that generates a random number between 1 and 100 and asks the user to guess what the…
A: Lets see the solution.
Q: Write a python program that uses a loop to display the number of calories burned after 10, 15, 20,…
A: Write a python program that uses a loop to display the number of calories burned after 10, 15, 20,…
Q: Write a program that prompts the user to enter a monthly saving amount and displays the account…
A: Note: Since no language is mentioned, therefore answering the given question in python language. #…
Q: This is a continuation from the previous question. Pervious question answer is float hours =…
A: The code consists of an infinite while loop which will stop only when user enters a valid number of…
Q: The distance a vehicle travels can be calculated as follows: distance = speed * time. For example,…
A: Write a C++ program that asks the user to enter the speed of a vehicle(in miles per hour) and how…
Q: Question#2. The distance a vehicle travels can be calculated as fallout: Distance = Speed * Time For…
A: Step-1 Start Step-2 Declare integer variable 's' ,'t' and 'i' Step-3 Input Speed as 's' Step-4 Input…
Q: Write a loop that displays your name 10 times.
A: Program code: #include <iostream> using namespace std; int main() { //loop that iterates to…
Q: JavaScript Write JavaScript programs to do the following: (1) At one college, the tuition for…
A: Program in Javascript to calculate the projected semester tuition fees after 5 years.
Q: 1. Using a loop of your choice, read information from the console about employees in a company. Each…
A: Program:
Q: One interesting application of computers is drawing graphs and bar charts. Write a program that…
A: Read 5 numbers and store in array. Iterate from k=0 to k=4 n=arr[k] Iterate from i=1 to i=n…
Q: Write a program named guess.cpp that generates a random number between 1 and n, where n is the upper…
A: Use srand for generating different number every time and for guessing use a loop till the guess and…
Q: Implement the following: 1) Use a loop to print all the numbers of multiples of 6 and multiples of…
A: #include<iostream> using namespace std;int findSum(int a, int b){ int sum = 0; for (int…
Q: Write a loop that gets an integer number from user until the number is 100. Use a static integer…
A: Note as per our guidelines we are supposed to answer?️ only one question. Kindly repost other…
Q: Write a program that displays a weekly payroll report. A loop in the program should ask the user for…
A: Answer: The program has shown below- #include<iostream> #include<stdlib.h> using…
Q: write a loop that displays all ossible combinations of two letter there the letters are 'a', or 'b',…
A: We have to use the letters are 'a', or 'b', 'c', 'd', or 'e'. Print these in ascending alphabetical…
Q: Given the for loop below, choose the statement that is executed in the respective order: for( int i…
A: Syntax of for loop:- for(initialization; condition; update) { statements; }
Q: In visual studio please answer For 1-4, Using a For…Next, Do While, or Do Until Loops, create the…
A:
Q: Write a program that generates a random number and asks the user to guess what the num- ber is. If…
A: C++ Code: #include <iostream> using namespace std; int main(){ int num, guess, tries = 0;…
Q: Write a loop that displays all possible combinations of two letters where the letters are 'a', or…
A:
Q: The following code is an example of what kind of loop? int count = 0; while (count < 10) {…
A: int count = 0; while (count < 10) { count++; }
Q: Java Write a program that will prompt the user for the number of students in Mr. Zapanta's Grade 12…
A: Hello student, hope you are doing good. In this question, we havev to write the java code for…
Q: Write a program that will predict the size of a population of organisms. The program should ask the…
A: PROGRAMING CODE: #include <iostream>#include <iomanip>using namespace std; int main(){…
Q: Write a program that asks the user to enter today’s sales for five stores. The program should then…
A: To solve this program following variables, data types and methods are used to calculate the sell…
Q: 2 In code, create a variable called strName and populate that variable with your name. Your code…
A: NOTE : As the question is not specific about the Programming Language to be used to code the…
Q: Implement the following: 1) Use a loop to request a user input from the console. 2) The loop should…
A: I have used the online python compiler for this code. But the compiler does not matter, the code is…
Q: In one of the Chapter 3 Programming Challenges you were asked to write a program that converts a…
A: Program: #include <iostream>#include <iomanip>using namespace std; int main(){ double C,…
Q: Create a loop that counts from 0 to 10, and prints odd numbers to the .screen
A: continue If the continue statement is execute then skip the remaining steps. So any number of…
Q: Programming Problem 1Write a program that has the user input their height in inches and convert it…
A: Program Algorithm-STARTStep1: Import the essential packagesStep2: Define a class ConvertStep3:…
Q: Write a program (lab3.cpp) that finds the temperature that is the same in both Celsius and…
A: C++ program for the above problem is given below: #include <iostream> using namespace std; int…
Q: distance = speed time For example, if a train travels 40 miles per hour for 3 hours, the distance…
A: Code: #include<iostream>using namespace std;int main(){int s,h,d;cout<<"What is the…
Running on a particular treadmill you burn 3.9 calories per minute. Write a program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- 6. Distance Traveled The distance a vehicle travels can be calculated as follows: distance = speed time For example, if a train travels 40 miles per hour for 3 hours, the distance traveled is 120 miles. Write a program that asks the user for the speed of a vehicle (in miles per hour) and how many hours it has traveled. The program should then use a loop to display the distance the vehicle has traveled for each hour of that time period. Here is an example of the output: What is the speed of the vehicle in mph? 40 How many hours has it traveled? 3 Hour Distance Traveled 1 40 2 80 3 120 Input Validation: Do not accept a negative number for speed and do not accept any value less than 1 for time traveled.Question#2. The distance a vehicle travels can be calculated as fallout: Distance = Speed * Time For example, if a train travels 60 miles-per-hour for three hours, the distance [raveled is 120 miles. Write a program that asks for the speed of a vehicle (in miles-per-hour) and the number of hours it has traveled. It should use a loop to display the distance a vehicle has traveled for each hour of a time period specified by the user. For example, if a vehicle is traveling at 40 mph far a three-hour time period, it should display a report similar to the one chat follows: Hour Distance Traveled 1 90 2 100 3 150 Input Validation: Do not accept a negative number for speed and do not accept any value les than 1 for time traveled.Running on a particular treadmill you burn 4.2 calories per minute. Write a program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes. Using RAPTOR
- Python programming Write a program that generates a random number and asks the user to guess what the number is. If the user's guess is higher than the random number, the program should display "Too high, try again." If the user's guess is lower than the random number, the program should display "Too low, try again." The program should use a loop that repeats until the user correctly guesses the random number. TY!PYTHON PROGRAMMING ONLY PLEASE Running on a particular treadmill you burn 4.2 calories per minute. Write a program thatuses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes.Use C++ programming language.. Random Number Guessing Game Write a program that generates a random number between 1 and 100 and asks the user to guess what the number is. If the user’s guess is higher than the random number, the program should display “Too high. Try again.” If the user’s guess is lower than the random number, the program should display “Too low. Try again.” The program should use a loop that repeats until the user correctly guesses the random number. Then the program should display “Congratulations. You figured out my number.”
- Tuition Increase - MUST BE WRITTEN IN PSEUDOCODE At one college, the tuition for a full-time student is $6,000 per semester. It has been announced that the tuition will increase by 2 percent by each year for the next five years. Designing a program with a loop that displays the projected semester tuition amount for the next five years.(Simulation) Write a program to simulate the roll of two dice. If the total of the two dice is 7 or 11, you win; otherwise, you lose. Embellish this program as much as you like, with betting, different odds, different combinations for win or lose, stopping play when you have no money left or reach the house limit, displaying the dice, and so forth. (Hint: Calculate the dots showing on each die with the expression dots=(int)(6.0randomnumber+1), where the random number is between 0 and 1.)Write a program that displays a weekly payroll report. A loop in the program should ask the user for the employee number, gross pay, state tax, federal tax, and FICA withholdings. The loop will terminate when 0 is entered for the employee number. After the date is entered, the program should display totals for gross pay, state tax, federal tax, FICA withholdings, and net pay.
- Task 2: Multiples Write a program that asks the user for an integer n, and then prints first 10 multiples of that integer. Use a while/do...while loop. Example: Enter an integer: 2 Output: 2 x 1 = 2 2 x 2 = 4 2 х 3 %3D 6 2 x 4 = 8 2 x 5 = 10 12 2 х6 2 x 7 2 х8 14 16 2 x 9 18 2 x 10 = 201. first ask the user to enter the number of students in the range of 1 to 10. 2. then the program asks the user to enter the number of tests (in the range of 1 to 5) 3. Then use a loop to collect the scores for those many tests for each student. The outer loop will iterate once for each student. The inner loop will iterate several times, once for each test. Each iteration of the inner loop will ask the user to enter the score for a test of a student.The distance a vehicle travels can be calculated asfollows: distance = speed time. For example, if a traintravels 40 miles per hour for 3 hours, the distancetraveled is 120 miles. Write a program that asks the userfor the speed of a vehicle (in miles per hour) and howmany hours it has traveled. The program should then usea loop to display the distance the vehicle has traveledfor each hour of that time period.