Running on a particular treadmill you burn 3.9 calories per minute. Design a program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes.
Q: Exercise 4.1: Write a C++ program for a number guessing game. The program generates and stores a…
A: The problem is based on a random number guessing game.
Q: Guess The Number Game: write a C++ program that will ask the user to guess a secret number randomly…
A: #include<iostream> using namespace std; int main(){ int guess,score_p,score_c,random,i;…
Q: Suppose the Great Frederick Fair wants to update its ticketing software. They need you to write a…
A: Answer: A required Python program is as follows, #Set the constant BASIC_PRICE=40…
Q: Create a C++ program that allows user to enter the following information: Name(string),…
A: C++ program to enter and display the student information: #include <iostream>using namespace…
Q: Engineering P4.4.1.9 A mass m is attached to the end of a rope of length r= 3 meters. The rope can…
A: Required: A mass m is attached to the end of a rope of length r = 3 meters. The rope can only be…
Q: What is the output from the following code segment if the user enters 8
A: According to the question we need to find the output from the following code segment if the user…
Q: 2- Write a Python program that determines a student’s grade. The program will read three types of…
A: here in this question we have asked to write a program which three score as input and based on…
Q: Write a c++ program that will ask the user to input 20 integer numbers. Count the number of odd and…
A: #include <iostream> using namespace std; int main(){ // Define variables int e = 0;…
Q: Write a C++ program proj1.cpp that lets the user or the computer play a guessing game. The computer…
A: Sample Run 1: Sample Run 2:
Q: Design a program that asks the user for a series of names (in no particular order). After the final…
A: Sentinel controlled while loop : The sentinel is a flag value that can be numerical or boolean or…
Q: I'm currently studying C++ and i have this lab i need the answer to it. Write a program that asks…
A: CODE:- #include <iostream>using namespace std;int main(int argc, char *argv[]){ int quarters,…
Q: Write a C program that calculates the employee salary and print the information as follows: - Your…
A: As per question the code is given below:
Q: A triathlon is a multiple stage sports competition, where athletes compete for fastest overall…
A: Use a loop to iterate for 50 times and accept the input and store minimum time and respective player…
Q: Write a program that reads the test scores of 25 students in the range 0–100. It should then…
A: Start Input 25 values If Input is in range 0-24, increment case1 If Input is in range 25-49,…
Q: The members of the board of a small university are considering voting for a pay increase for their…
A: Algorithm : Step 1 : declare arrays. Step 2 : declare variables. Step 3 : use for loop to ask for…
Q: Write a C program that allows the user to enter values for the width and length of a wall in feet…
A: The required C program should generate a paint calculator in the output. It needs user input for the…
Q: Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the…
A: Store minutes as long int to store longer values
Q: C++ program called AlphaBravoCharlie which prints the numbers 1 to 110, 11 numbers per line. The…
A: The below given C++ program will obey the following rubrics: Including necessary header files.…
Q: Write C# a program that simulates rolling five die. Your program should count the number of rolls it…
A: Use a do-while loop for generating random numbers and generate till all the numbers are same
Q: Exercise 1: Write a C++ program that displays a series of integer numbers starting from 1 to n,…
A: PROGRAM STRUCTURE: Include the required header files. Start the definition of the main function.…
Q: Write a code snippet that can arrange the alphabets of a name entered by user in alternate cases.…
A: Program code: //include the required header files#include <stdio.h>#include…
Q: rice calculations, using the rules*: • The basic price of a ticket is $40. • Senior citizens (age >=…
A: the program is an given below : def main(): ticket_base_price = 40 name = input('Enter…
Q: Mars hyper market gives discount to customers based on their spending. If a customer spends 20 Omani…
A: #include<iostream>using namespace std;int main(){ float spending; cin>>spending;…
Q: In Chapter 1 you created a program named Triangle in which you displayed a seven-line triangle…
A: The, code has given below:
Q: Write a C++ Program that calculate and print the insurance for 15 cars. For each car, the program…
A: #include <iostream>using namespace std; int main(){ int year, price; char insuranceType;…
Q: (Guess the Number) Write a C program that plays the game of “guess the number" as fol- lows: Your…
A: Hey, since there are multiple questions posted, we will answer first question. If you want any…
Q: Write an application that inputs three integers from the user and displays the sum, average,…
A: Sir, you didn't mention any programming language, hence according to bartleby policy, I have…
Q: 2. Write a C++ program to play a guessing game: • The computer randomly generates a number between 1…
A: // Code #include <iostream>#include <stdlib.h> using namespace std; int main(){ int…
Q: A Computer Science instructor at a computer school wants his students to create a program that…
A: #include<iostream> using namespace std; int main(){ double…
Q: Write a C++ program that asks the user for the length and width of a rectangle then calculate its…
A: create a main() and then initialize the variables w for width, l for length, and then area_rect to…
Q: code a c++ program, game of 23 The game of "23" is a two-player game that begins with a pile of 23…
A: The program consists of a function logic that is used to decide the move of the computer based on…
Q: c) Write a complete C program that will ask the user to enter the user age in years. If age is less…
A: C is indeed one of the most popular programming languages of the present time. It is one of the…
Q: code a c++ program, game of 23 The game of "23" is a two-player game that begins with a pile of…
A: According to the information given:-We have to write c++ code on the basis of instruction mentioned
Q: Use looping in creating a JAVA flowchart. Problem1. Create a flowchart from the given output. ***…
A: Note: As per guidelines, we are allowed to answer only one independent question per post. Kindly…
Q: In C program Write a program that calculates mileage reimbursement for a salesperson at a rate of…
A: Actually, program is executable software that runs on a computer.
Q: Write a C++ program for a number guessing game. The program generates and stores a random number and…
A: Input : Input the guess number until 50 is entered. Output : Keep count of the number of times…
Q: Suppose you shop for rice in two different packages. You would like to write a program of C++ to…
A: The price per unit weight can be calculated by dividing the total package price by total weight and…
Q: (c) You are required to create a program that reads a letter of the alphabet from the user. If the…
A: Algorithm: Start Read a character ch Convert the character to Lower case If character is a/e/i/o/u,…
Q: Write a program named TypingGrades that allows a user to enter a student’s number of words typed.…
A: Algorithm: Start READ numWords IF numWords<= 15 then: grade='F'ELSE IF numWords<=30 then:…
Q: Write a C++ program in which you declare variables that will hold an hourly wage, a number of hours…
A: Program Approach: Create variables of type int Take input from user Calculate net pay using formula…
Q: I need help writing a C++ program. I need a function name celsius that accepts a Fahrenheit…
A: Program: Programs are used to interact with the computer and solve problems according to the…
Q: Make a C programming of: The utilities commission has decided that the electric company overcharged…
A: Given: electricity cost per kilo watt is : 25.50 utility tax is 3 % cost per kilo wat = 25.50…
Q: Write a C program using loops to input two subject marks and calculate the total and average of…
A: #include<stdio.h> void main( ) { int n, count = 1; float k, avg, sum = 0;…
Q: Write a program in python that asks the user to enter a word and then capitalizes every other letter…
A: PROGRAM CODE: st = input("Enter the string: ") // take original string from…
Q: Introduction This particular program implements a game called "Checkers" that is played in real…
A: Given:
Q: In Python 3.7.4 Write a program that will compute the total cost of an amazon purchase. The program…
A: ProgramSince two questions have been given and it is not clear the answer is sought for which…
Q: A triangular number or triangle number counts the objects that can form an equilateral triangle. The…
A: A C++ program is as follows, File name: “main.cpp” #include <iostream> using namespace std;…
Q: Hell’s Kitchen decided to make a TV program that allows the user to enter 2 readings for their…
A: Please refer below for the code and output: Language used is C: #include <stdio.h>int…
Q: (Display a pattern) Write a program that displays the following pattern:JJ aaa v vaaaJ J aa v v a aJ…
A: File name: "Solution.java" public class Solution { public static void main(String[] args)…
Q: Develop a C code using modulo operator (%) to print out all the divisors of a user entered number.…
A: #include <stdio.h> int main(){ int num,k; printf("This program identifies and displays…
Running on a particular treadmill you burn 3.9 calories per minute. Design a
please make a pseudocode in c++
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- In order for the bulb to work, 3 buttons must be pressed and the button values must provide exactly the required energy, there should be no more or less. It is assumed that the buttons are pressed simultaneously, the order is not important. If the required energy is provided with the entered button values, the program should output "Bulb On", if not, "Bulb Does Not Light" output. Code the program in C language, following the rules below. 1. The number of buttons and their values will be taken from the user.2. The energy required for the bulb to work will be taken from the user.3. You have to design the program RECURSIVE.4. The triple button groups that provide the required energy do not have to be listed, it is sufficient to send a message to the screenThe members of the board of a small university are considering voting for a pay increase for their 100 faculty members. They are considering a pay increase of 5%. Write a complete program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase. You have to use a loop for the problem. C++ language only.Calculator is used for making mathematical calculations, in particular a small electronic device with a keyboard and a visual display. Normally, user enter the numbers and mathematical operator in between, calculator identifies from the sign that what to perform. E.g. User Enters: 8 / 2 Answer is 4 Calculator performs division by identifying the operator in between the numbers. Write a C++ program to perform the same. Your program should be able to sum, subtract, divide and multiply. User should be allowed to enter three numbers Sample Output: Enter your expression: 5 + 67 + 2 Sum Answer: 74
- JAVA and Netbeans Using any of the discussed looping statements, create a code that will output the below sample. (No using of simple System.out.println) you need to use either looping or decision statement:Java Programming Create a program that will display the following output using while() loop statement.Design a program that gives simple math quizzes. The program should display two random numbers that are to be added, such as: 247 + 129 The program should allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed. please make a flowchart and psuedocode for me in c++
- A rectangle is 4 times as long as it is wide. If the length is increased by 4 inches and the width is decreased by 1 inch, the area will be X_AREA square inches. If X_AREA is entered by the user, create a program that will determine what were the dimensions (length and width) of the original rectangle using c++ compiler.A pair of primes that vary by two is a pair of twin primes (e.g., 3 and 5, 101 and 103). Write a C++ application that displays the total number of twin primes smaller than 1000.Control structuresThe Fibonacci sequence is:0, 1, 1, 2, 3, 5, 8, 13, …The first two terms are 0 and 1, and each term thereafter is the sum of the two preceding terms. That is:Fib[n] = Fib[n - 1] + Fib[n - 2].Using this information, write a C/C++ program that calculates the nth number in a Fibonacci sequence, where the user enters n into the program interactively. For example, if n=6, the program should display the value 5. See the example output in Figure 2.1.
- This is a C++ question, not Python or Java Write a program that asks the user for the actual value of a piece of property and thecurrent tax rate for each $100.00 of assessed value. The program should then calculateand display how much annual property tax the homeowner will be charged for his or herproperty. The program should also display the Property Value, the Assessed Value, andthe Tax Rate. Display all monetary values to two decimal places Run your program three times with the data below Property Value: Tax Rate$100,000.00 2.64$200,000.00 2.05$350,000.00 3.10In C Language please.. 6. DigitMon by CodeChum Admin When I was a kid, I used to play Digimon. Now that I'm a programmer and I have this weird passion of digits, I want to combine them both to create the ultimate program: DigitMon! This DigitMon program would take an integer input and would output the sum of all the digits of the number. For example, if the input is 243, the output would be 9 because 2 + 4 + 3 = 9. In this case, we say that the DigitMon of 243 is 9. Instructions: In the code editor, you are provided with an initial code that asks the user for an integer input and passes this to a function call of the digitMon() function. The digitMon() function is a recursive function which has the following description: Return type - int Name - digitMon Parameters - one integer Description - this function is a recursive function that computes the DigitMon of the passed integer. The digitMon() function is already partially implemented. Your task is to fill in the blanks to…In C Language please.. 6. DigitMon by CodeChum Admin When I was a kid, I used to play Digimon. Now that I'm a programmer and I have this weird passion of digits, I want to combine them both to create the ultimate program: DigitMon! This DigitMon program would take an integer input and would output the sum of all the digits of the number. For example, if the input is 243, the output would be 9 because 2 + 4 + 3 = 9. In this case, we say that the DigitMon of 243 is 9. Instructions: In the code editor, you are provided with an initial code that asks the user for an integer input and passes this to a function call of the digitMon() function. The digitMon() function is a recursive function which has the following description: Return type - int Name - digitMon Parameters - one integer Description - this function is a recursive function that computes the DigitMon of the passed integer. The digitMon() function is already partially implemented. Your task is to fill in the blanks to…