![Problem Solving with C++ (9th Edition)](https://www.bartleby.com/isbn_cover_images/9780133591743/9780133591743_largeCoverImage.gif)
Write a
Fahrenheit= (9×Celsius) 5+32
Your program should create two integer variables for the temperature in Celsius and Fahrenheit. Initialize the temperature to 100 degrees Celsius. In a loop, decrement the Celsius value and compute the corresponding temperature in Fahrenheit until the two values are the same.
Since you are working with integer values, the formula may not give an exact result for every possible Celsius temperature. This will not affect your solution to this particular problem.
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Chapter 3 Solutions
Problem Solving with C++ (9th Edition)
Additional Engineering Textbook Solutions
Starting out with Visual C# (4th Edition)
Programming in C
Java How To Program (Early Objects)
Starting Out with Java: From Control Structures through Objects (6th Edition)
Starting Out with C++ from Control Structures to Objects (8th Edition)
Web Development and Design Foundations with HTML5 (8th Edition)
- n is an integer variable.Write a while loop that prints integer numbers starting with n and dividing the number to 4 each time, while the new number is greater than 0.(Example: If n is 2077, it will print 2077 519 129 ...)Write only the statements to perform the above explained task, nothing else.Use while loop, don't use for loop.arrow_forwardWrite a program that calculates the balance of a savings account at the end of a period of time. It should ask the user for the annual interest rate, the starting balance, and the number of months that have passed since the account was established. A loop should then iterate once for every month, performing the following: A) Ask the user for the amount deposited into the account during the month. (Do not accept negative numbers.) This amount should be added to the balance. B) Ask the user for the amount withdrawn from the account during the month. (Do not accept negative numbers.) This amount should be subtracted from the balance. C) Calculate the monthly interest. The monthly interest rate is the annual interest rate divided by twelve. Multiply the monthly interest rate by the balance, and add the result to the balance. After the last iteration, the program should display the ending balance, the total amount of deposits, the total amount of withdrawals, and the total interest earned.arrow_forwardComputer Science Can you show step by step on solving this program on raptor and showing the Flowchart for it Running on a particular treadmill you burn 4.2 calories per minute. Write a python program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutesarrow_forward
- At one college, the tuition for a full-time student is $8000 per semester. It has been announced that the tuition will increase 3 percent each year or the next 5 years. Write a Visul Basic program with a loop that displays the projected tuition amount for the next 5 years. Use a constant for the percentage of change and for the starting tuition. Print the tuition amounts with a dollar sign and two decimal places.arrow_forwardPythonarrow_forwardWrite a program that prompts the user to firstly input the amount a person has budgeted for a month. A loop should then prompt the user to input each of the expenses (zero indicates the user is done with entering an expense) for the month and keep a running total (the total amount of expenses). When the loop finishes, your program should calculate the difference between budgeted. amount and the total expenses. If the budgeted amount is larger than total expenses, display "you are $xx under budget". If the total expenses is larger than budgeted amount, display "you are $xx over budget". If the total expenses is equal to budgeted amount, display "good planning". Your result should be like, for example, below: Enter amount budgeted for the month: 1000 Enter an amount spent(0 to quit): 200 Enter an amount spent(0 to quit): 50 Enter an amount spent(0 to quit): 150 Enter an amount spent(0 to quit): 0 You are $600 under budget.arrow_forward
- Write a code that will loop by inputting any integer and displays whether the integer is “POSITIVE” or “NEGATIVE”, and terminate the loop if the integer is equal to zero using while loops.arrow_forwardVolume and Area of a Regular Icosahedron An icosahedron is a regular polyhedron with 20 congruent equilateral triangular faces. Ask the user to supply the length of one of the edges (one side of a triangular face) and then calculate the total surface area and volume of the icosahedron. Report the answers and then repeat. Your program should loop until the value 0 is entered for the radius – and then it should promptly exit. Only positive numbers are allowed for the length of the edge. ???? =? √?∗?? ??????=?/?? (?+ √?)∗ ?3 assemblyarrow_forwardVolume and Area of a Regular Icosahedron An icosahedron is a regular polyhedron with 20 congruent equilateral triangular faces. Ask the user to supply the length of one of the edges (one side of a triangular face) and then calculate the total surface area and volume of the icosahedron. Report the answers and then repeat. Your program should loop until the value 0 is entered for the radius – and then it should promptly exit. Only positive numbers are allowed for the length of the edge. ???? =? √?∗?? ??????=?/?? (?+ √?)∗ ?3arrow_forward
- Write a loop that iterates exactly ten times. With each iteration it should ask the user to enter a number, and keep a running total of all numbers entered. When the loop is finished, display the total sum (float) and the average of the 10 numbers (float).arrow_forwardConstruct a single for loop to print out the following lines. You may use as many variables as you wish, but you may not use multiple loops. 4 4 4 8 2 7 16 1 10 32 0.5 13 64 0.25 16arrow_forwardFor Python The user enters a number and tell them if the number is > 60 or not but keep it going in a loop until the user enters the number 0 which then exits the code and tells the user how many of their numbers entered is > 60.arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
![Text book image](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)