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
- Write a loop that displays your name 10 times.Write a program that prompts the user to enter a monthly saving amount and displays the account value after the sixth month. (You will use a loop to simplify the code and display the account value for any month.)PYTHON PROGRAMMING Write a loop that prints out the following numbers. Make sure to precisely match the output format below. Example Output3, 6, 12, 24, 48, 96,
- 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.write a loop that will display numbers in reverse order from 20 to 0Write 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.
- write a program with a loop that asks the user to enter a series of negative numbers. The user should enter a positive number to signal the end of the series. After all the negative numbers have been entered, the program should display the largest and smallest of the numbers entered.Use Python to write a program that uses a loop to display the number of calories burned after 20, 25, 30, 35, and 40 minutes. Running on a particular treadmill you burn 5.3 calories per minute.The distance a vehicle travels can be calculated as follows: Distance = Speed X TimeDesign a program that asks a user for the speed of a vehicle in miles per hour and how many hours it has travelled (Assume the two values are integers). Your program should then use a loop to display the distance the vehicle has traveled for each hour of that time period. (For example, entering 50 mph and 4 hours should produce output like: Hour 1: 50 miles, Hour 2: 100 miles, Hour 3: 150 miles, Hour 4: 200 miles. )
- This is a continuation from the previous question. Pervious question answer is float hours = sc.nextFloat(); use this for this question Now that the hours have been entered, write a loop that will run as long as the user enters bad hours data (0 or negative hours). If the user entered bad hours data, it asks them again with the message Not a valid amount of hours. Enter the hours again:What will be the value of x after the following code is executed? int x = 10, y = 20; while (y < 100) { x = x + y; } A) 90 B) 110 C) 210 D) This is an infinite loop.Write a program that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt the user to enter each of his or her expenses for the month and keep a running total. The loop should finish when total of the expenses, is at or over budget. The program should print the amount of money left over after the expenses. javascript