Answered step by step
Verified Expert Solution
Question
1 Approved Answer
the program language is c++ and solve using variables method Money Money Money: Write a program that prompts the user to enter the money he/she
the program language is c++ and solve using variables method
Money Money Money: Write a program that prompts the user to enter the money he/she has in pennies, nickels, dimes, and quarters, then the program calculates the total money in pennies. For example if the user has 17 pennies, 29 nickels, 23 dimes, and 7 quarters, then the final answer is 17+5* 29+10* 23+25+ 7 = 567. Assume the following: 1 nickel is 5 pennies, 1 dime is 10 pennies, 1 quarter is 25 pennies. Sample input/output: Enter the pennies, nickels, dimes, and quarters: 17 29 23 7 The total money is: 567 Sum the Odd and Even Numbers Write a program that reads 5 positive integers, sums, and prints the odd and even integers. Sample input/output: Enter 5 positive integers: 27 8 56 12 99 The sum of odd integers is: 126 The sum of even integers is: 76 Carpet Price: The price of a carpet is 33 dirham per square foot. Write a program that prompts the user to enter the length and width of a carpet each in feet and inches. The program calculates and prints the area in square foot and the price of the carpet. Sample input/output: Enter the length in feet and inches: 53 Enter the width in feet and inches: 48 The price of 24.5 square foot is: 808.5 dirham 2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started