00:01
Write a program which converts the number of quarters dines and nickels to total number of pennies.
00:07
So we have to prompt the user to enter the number of quarters, dimes and nickels.
00:12
So that's why i'm using this header file here, which is include ios stream, and i'm using c+ + here, and using namespace std, and the first function, the main actual function that gets called is the main function.
00:26
So let's get to writing the code.
00:28
So since we would need three different inputs, let's name the variables first.
00:34
Quarters, dimes, nickels and total pennies.
00:46
This is our output.
00:52
Now let's prompt the user one by one to enter the number of each of these quarters, dimes and nickels.
00:59
So we have this function c out that prompts the user to, let's say, let's give a message.
01:09
Enter quarters and to be a cleaner code let's say let's prompt the user to enter in a new line by specifying slash n and now let's store the input given by the user in this variable similarly let's ask enter dimes same way let's store the dimes in the dimes variable similarly, the last one, enter nichols.
02:11
Stored in our nichols variable...