Home /
Expert Answers /
Computer Science /
no-if-else-statement-pls-i-need-an-example-write-in-only-c-details-write-a-c-program-to-solve-pa542
(Solved): no If-else statement pls, I need an example, write in only c++ Details Write a C++ program to solve ...
no If-else statement pls, I need an example, write in only c++
Details Write a C++ program to solve the following probleme For this problem you will pay the bill in quarters, dimes, nickels, and pennies only, Input: Prompt the user for the amount you owe. This should be a float or double and is the only variable in the code that is NOT an integer type. Calculations: Calculate number of quarters, the number of dimes, and the number of pennies you need to pay your bill. See het for how to solve the problem before trying to teach the computer in code how to solve it Essentially you will use division operator/and the modulus operator on Integer Output: For example, if you owe 15.45 you would output 61 quarter(s) 2 dime(s) O nickel(s) O pennies Criteria: • The source code must contain your name, email and lab number as comments at the top. . In addition to these comments, have at least four other meaningful comments • The output must contain your name created through cout statement(s). • Submit the source code with the output for the above test case copied and pasted at the bottom as a commer, Rafore submitting check that you have completed each criteria as listed in the rubrie. Use only the programming constructs introduced so far.
Source code of the program is given below.Detailed comments are included for better understanding the code.Screen shot of the code and output are also attached.If find any difficulty, feel free to ask in comment section. Le