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
herhis first name and herhis last name. You can assume that each name is 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:
Enter c for cents, d for dollars: c
The amount in cents is
Enter your first name: Frank
Enter your last name: DeLima
Hello Frank DeLima
Enter the amount of money in your wallet:
Enter c for cents, d for dollars: d
The amount in dollars is $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
