Question: Write the algorithm, flowchart and C code for a computer program that asks the user to enter ( 1 ) her / his first name

Write the algorithm, flowchart and C code for a computer program that asks the user to enter
(1) her/his first name and (2) her/his last name. You can assume that each name is 10 characters
or less. The program prints "Hello " followed by the user's names. The program then asks the
user to enter the amount of money in their wallet. The program then asks the user to enter a 'c'
or 'd' for cents or dollars and prints out the amount they entered in cents or dollars. Here are
two sample runs of the program:
Enter your first name: Glenn
Enter your last name: Miyashiro
Hello Glenn Miyashiro
Enter the amount of money in your wallet: 112.34
Enter 'c' for cents, 'd' for dollars: c
The amount in cents is 11234
Enter your first name: Frank
Enter your last name: DeLima
Hello Frank DeLima
Enter the amount of money in your wallet: 5.25
Enter 'c' for cents, 'd' for dollars: d
The amount in dollars is $5.25

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!