Write a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds. Output both the weights rounded to two decimals places. (note that I kilogram = 2.2 pounds)
Q: Write a program that prompts the user to enter two positive integers less than 1,000,000,000 and the…
A: Program code: //include the required header files #include <iostream> using namespace std;…
Q: Write a program that prompts the user to enter an integer for today’s day of the week (Sunday is 0,…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define…
Q: Write a program that will read a number from the keyboard. If 60≤number≤100 , display “Pass”, if…
A: Conditional Statement in C: Conditional statements in C execute sequentially based on the some…
Q: Write a program sequence.cc that prompts the user to enter the value of x, the pro- gram outputs the…
A: CODE:- #include <iostream>using namespace std; int main(){ char again; do{ //get…
Q: 2. Write a complete program that prompts the user for a test score and prints out the letter score…
A: Here I written Java code for given problem. I hope you like it.
Q: write a program to calculate electricity bill charged to a consumer.Ask him to enter the unit…
A: Program: #include <stdio.h> /* Main Function */ int main() { /* Declare the variables */…
Q: Write a program that asks the user to enter the length and width of lot1 and radius of lot2. Your…
A: Since there is no programming language is mentioned, therefore, the program is written in C…
Q: Write a program that accepts as input the mass, in grams, and density, in grams per cubic…
A: Please find the answer below :
Q: Write a program that inputs year and month number, it then display the number of days in that month…
A: The given problem is to be solved in programming language where the user will input the year and…
Q: Write a program that prompts the user to input an integer and then outputs both the individual…
A: Program plan: Include the necessary header files. in the main method declare the character array.…
Q: Write a program which takes an input from the user, if the input is 1, calculate the area of the…
A: ALGORITHM:- 1. Display the menu. 2. Take input for choice. 3. Take input for various parameters to…
Q: Write a program that prompts the capacity, in gallons, of an automobile fuel tank and the miles per…
A: Program: //include the header file #include <iostream> using namespace std; //definition of…
Q: Write a program that requests the user to enter the total purchase in dollars and cents ( for…
A: As there is no langhuage mentioned I am solving this using c. Algorithm: 1. read the amount amt 2.…
Q: 3. Write a program that takes a bank account balance and an interest rate as an input. And then…
A: #include<stdio.h>int main(){ int initialBalance; float interestRate; int…
Q: Write a program with total change amount as an integer input that outputs the change using the…
A: Program: def exact_change(user_total): dollars = user_total // 100 user_total %= 100…
Q: Write a program that does the following. Ask the user to enter 10 positive integer values from the…
A: Program Approach: Including the necessary header file. Defining the main method. Deffining an…
Q: 3. Write a program that takes a bank account balance and an interest rate as an input. And then…
A: Solution : Solving above question in c++ please see to it ... Code :: .…
Q: • Write a program that prompts the user to input an integer and then outputs the number with the…
A: Note: As you have not mentioned any programming language, I am writing the program in the JAVA…
Q: Write a program that prompts the user to enter an integer and determines it is divisIble by and 6,…
A: Q1: #include<bits/stdc++.h> using namespace std; int main() { cout<<"Enter a…
Q: Write a program that converts "kilometers per hour" to "miles per hour". miles = (kilometers…
A: Hi. As there is no language mentioned, I will attempt this question using Python. Let's move on…
Q: Write a program with total change amount in pennies as an integer input, and output the change using…
A: Introduction of Program In this C++ program, the change will be calculated as given below 1 dollar =…
Q: Write a program that prompts the user to input an integer and then outputs both individual digits of…
A: Note: In this question, the coding language is not specified then we are doing this question in the…
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: 1- Note: Since you have not provided the language to write the code so I am using java language to…
Q: Write a program that prompts the user to enter the year and first day of the year, and displays the…
A: PROGRAM CODE: import java.util.*;public class Main { public static void main(String[] strings)…
Q: Write a program that prompts the user to input three numbers. The program should then output the…
A: The given is the requirement to solve the problem in C++ programming lanague where: a) User will…
Q: write a program that takes a temperature reading in Fahrenheit and outputs the equivalent…
A: Code : Following function converts the Fahrenheit temperature to celsius: def fToc(fah): #formula…
Q: Write a program that asks the user to enter 2 numbers from the keyboard. If either answer is larger…
A: or is a logical operator that can be used to check the conditions and this returns true if any of…
Q: Write a program that reads an integer indicating the day of the week from the user and on the next…
A: Please find the answer below :
Q: Write a program that prompts the user to enter the weight of a person in kilograms and outputs the…
A: To solve the given problem, first we need to read weight in kilogram, then use the relation: 1…
Q: Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time…
A: Note: As no language is mentioned, therefore answering the given question in python. Input : age…
Q: Write a program in Python that takes in a line of text as input, and outputs that line of text in…
A: def reverse(s): newString = "" for c in s: newString = c + newString return…
Q: Write a program that inputs an integer. If the integer is greater than 100 or between 50 and 75…
A: task: create a program that inputs an integer. If the integer is greater than 100 or between 50 and…
Q: Write a program that will ask the user to enter salary amount. And then compute for the TAX amount.…
A: As the language is not specified answer written in c++ 1)Read input 2)Using if else check…
Q: write a program that uses input to prompt a user for their name and then welcomes them. Enter your…
A: CODE: name = input("Enter your name: ") print("Hello", name) OUTPUT: Enter your name: Chuck Hello…
Q: prompts the user to input an integer between 1 and 36. If the number is less than or equal to 10,…
A: the code is an given below :
Q: under 100 and prompts the user to enter the sum of these two integers. The program then reports true…
A: Here have to determine about program for sum of two numbers.
Q: Write a program that exchanges the value of x and y. The output must be: the value of variable y and…
A: Swapping to number using C program #include<stdio.h> int main() { int x, y, temp=0;…
Q: Write a program to read a positive integer value and to output the bonus received by the user. A…
A: Programming language is missing in the question. So we will answer this program in C++ language. If…
Q: Write a program that prompts the user to enter the currency exchange rate between U.S. dollars and…
A: GIVEN: Write a program that prompts the user to enter the currency exchange rate between U.S.…
Q: Write a program whose input is two integers. Output the first integer and subsequent increments of 5…
A: Please Indent the code as shown in the picture below :
Q: Write a program that prompt the user to enter the number of students and each student's score, and…
A: #include <iostream>using namespace std; struct student{ char name[50]; float marks;}…
Q: Write a program with total change amount as an integer input, and output the change using the fewest…
A: def main(): # get change amount as input from user change = int(input("Please enter amount due "))…
Q: 2. Write a complete program that prompts the user for a test score and prints out the letter score…
A: //2import java.util.Scanner;//to reading input from userpublic class Main{ public static void…
Q: Write a program that outputs all possibilities to put + or - or nothing between the numbers 1,2,…,9…
A: NOTE - I have used the Python programming language. Here we have to use 3 different operands which…
Q: Write a program that prompts the user to input an integer between 0 to 35. It the number is less…
A: Please find the answer below :
Q: Write a program that asks you to input an integer. After you input the integer, it should ask if you…
A: Please find the answer below :
Q: Write a program that asks the user to enter two numbers, obtains the two numbers from the user and…
A: Given: Write a program that asks the user to enter two numbers, obtains the two numbers from the…
Q: Write a program to calculate electricity bill charged to a consumer. Ask him to enter the units…
A: Note: Programming language is missing in the question. So we will answer this program in Java…
Write a
(note that I kilogram = 2.2 pounds)
Format your output with two decimal places.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- A parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $1 per hour for each hour or part thereof over four hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that will calculate and print the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format, and should calculate and print the total of yesterday's receipts. The program should use the function calculate Charges to determine the charge for each customer.Need help with the code for this question: Write a program that prompts the user to input an integer and then outputs both the individual digits of the number and the sum of the digits. For example, it should output the individual digits of: 3456 as 3 4 5 6 8030 as 8 0 3 0 2345526 as 2 3 4 5 5 2 6 4000 as 4 0 0 0 -2345 as 2 3 4 5A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that calculates and prints the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format and should calculate and print the total of yesterday’s receipts. The program should use the function calculateCharges to determine the charge for each customer. Your outputs should appear in the following format Sample output Enter the hours parked for 3 cars: 1.5 4.0 24.0 Car Hours Charge 1 1.5 2.00 2 4.0 2.50 3 24.0 10.00 TOTAL 29.5 14.50
- ] In a triangle, the sum of the lengths of any two sides is greater than the lengthof the other third side. Write a program triangle.cc that prompts a user to enterthe lengths of three sides, checks if they form a triangle, and outputs if it is an isosceles,equilateral, scalene, or right triangle. Also, your program should output the perimeter andthe area of the triangle. In a right triangle, the square of the length of one side is equalto the sum of the squares of the lengths of the other two sides. An isosceles triangle hastwo sides of equal length. An equilateral triangle has all three sides with the same length.A scalene triangle has no equal sides. Your program should define and use the followingfunctions:(a) isTriangle - takes the 3 sides of a triangle and returns true if they form a triangle,false otherwise.(b) isIsosceles - takes the 3 sides of a triangle and returns true if they form anisosceles triangle, false otherwise.(c) isEquilateral - takes the 3 sides of a triangle and…Write a program that prompts the user to enter the month and first day of the month, and displays all the Sundays in that month. For example, if the user entered the month 7 for July, and the first day 4 for Wednesday, your program should display the following output:A. Write a program that asks the user to enter a number of seconds.• There are 86400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86400, the program should display the number of days in that many seconds.• There are 3600 seconds in an hour. If the number of seconds entered by the user is less than 86400, but is greater than or equal to 3600, the program should display the number of hours in that many seconds.• There are 60 seconds in a minute. If the number of seconds entered by the user is less than 3600, but is greater than or equal to 60, the program should display the number of minutes in that many seconds.B. Write a function named biggest that receives three integer arguments and returns the largest of the three values.
- Write a program that asks the user for their name and their height in inches ("Enter your name: ", "Enter your height in inches: "). The program should display the person’s name and whether they are short, average, or tall. Short is less than 60 inches and tall is greater than 72 inches in between is average height. Display the output in the following format as an example: (Joe, “ your height is short” )A parking garage charges a $20.00 minimum fee to park for up to three hours. The garage charges an additional $5.00 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24- hour period is $50.00. Assume that no car parks for longer than 24 hours at a time. Write a program that calculates and printsthe parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format and should calculate and print the total of yesterday’s receipts. The program should use the function calculateCharges to determine the charge for each customer. Your outputs should appear in the following format: Car Hours Charge1 1.5 20.002 4.0…Write a program as follows. (Include all code required to run the program.) - Prompt the user and store a temperature value in the appropriate variable(expect decimal values). -The program asks the user for and store the unit type of temperature input: C for Celsius, F for Fahrenheit, or K for Kelvin. (both upper and lower case should work) - The program then outputs the temperature for all three scales for any input type. Example: if the input temperature is Fahrenheit then the program outputs the corresponding temperature in Celsius, Fahrenheit, and Kelvin. - Ask the user if any other conversions are needed, if y for yes, keep repeating the whole process, and if n for no then end the program. K = C + 273.15 C=K-273.15 F=C* (9/5) + 32 C = (F-32) * 5/9 Hint: you can change the input temperature first to Celsius and then do further calculations.
- Given an airplane’s acceleration a and take-off speed v, you can compute the minimum runway length needed for an airplane to take off using the following formula: length = v2 / 2 * a Write a program that prompts the user to enter v in meters/second (m/s) and the acceleration a in meters/second squared ( m/s2 ) , then displays the minimum runway length needed to take off. Here is a sample run: Enter speed and acceleration: 60 3.5 [enter] The minimum runway length for this airplane is 514.286Airline companies apply baggage restrictions for their passengers. An airline company has decided to apply a 10kg limitation for passengers' hand luggage and 20kg for their normal baggage. When passengers arrive, they enter their hand and normal luggage weight from the keyboard. If passengers exceed their normal baggage allowance of 10 dollars per gram, they pay 12 dollars per kg. Accordingly, write the program that calculates the baggage price of the airline they will go to according to the baggage values entered by the arriving passenger and keeps this from closing the program for each passenger. Note: If hand and normal baggage allowances are stretched below the maximum value, the payment amount will be considered not negative. An example printout is given on the right. Geri bildirim gönder: Write a program that input miles from the user and convert miles into kilometres. One mile is equal to 1.609 kilometres.