[solved] – Question 98702
Write a for loop to print the numbers 5, 10, 15 … 75.
Sample Run
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75
Expert Answer
[solved] – Question 98707
Write a program that repeatedly asks the user to enter two money amounts expressed in old-style British currency: pounds, shillings, and pence. (See Exercises 10 and 12 in Chapter 2, âC++ Programming Basics.â) The program should then add the two amounts and display the answer, again in pounds, shillings, and pence. Use a do loop that asks the user whether the program should be terminated. Typical interaction might be Enter first amount: £5.10.6 Enter second amount: £3.2.6 Total is £8.13.0 Do you wish to continue (y/n)? To add the two amounts, youâll need to carry 1 shilling when the pence value is greater than 11, and carry 1 pound when there are more than 19 shillings.
Expert Answer
[solved] – Question 98720
What is your first name? Ada
What is your last name? Lovelace
Student ID: 3456
Enter the next class, STOP to end: English 11
Enter the room number: 456
Enter the next class, STOP to end: Government
Enter the room number: 143
Enter the next class, STOP to end: Art History
Enter the room number: 943
Enter the next class, STOP to end: Algebra II
Enter the room number: 571
Enter the next class, STOP to end: Chemistry
Enter the room number: 467
Enter the next class, STOP to end: AP Comp Sci
Enter the room number: 510
Enter the next class, STOP to end: STOP
Expert Answer
[solved] – Question 98722
Write a program that creates an array called temperatures and then add five temperatures input from the keyboard.
Print the array.
Sample Run:
Enter a temperature: 45
Enter a temperature: 67
Enter a temperature: 89
Enter a temperature: 47
Enter a temperature: 89
[45, 67, 89, 47, 89]
Expert Answer
[solved] – Question 98738
Write a program that calculates and displays a person’s body mass index (BMI). The BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for his or her height. A person’s BMI is calculated with the following formula:
BMI = weight × 703 / height2
where weight is measured in pounds and height is measured in inches.
The program should display the calculated BMI along with a message indicating whether the person has optimal weight, is underweight, or is overweight.
A person’s weight is considered to be optimal if his or her BMI is between 18.5 and 25. If the BMI is less than 18.5, the person is considered to be underweight. If the BMI value is greater than 25, the person is considered to be overweight.
Expert Answer
[solved] – Question 98745
Write a program that
prompts the user to enter the year and the first day of the year and output the calendar table for
the year to a text file.
Expert Answer
[solved] – Question 98763
write a program that displays your name on the screen the number of times the users says it to display
Expert Answer
[solved] – Question 98764
write a c++ program that asks the user to enter two numbers: a dividend and a divisor. it the calculates the quotient and the remainder. loop the program to infinity.
Expert Answer
[solved] – Question 98765
print the square roots of the first 25 odd positive integers using do while loop.
Expert Answer
[solved] – Question 98769
Design and Write a C++ program which accepts an amount on money entered in kshs, if
the amount is greater or equals to 1000 shs, a 5% discount is given to the customer. It should
also display the amount the customer has to pay.
Expert Answer

