Make a C program: Input an AMOUNT (long integer) in PESO(up to 6 digits for up to thousands place value), determine its equivalent denimination in THOUSANDS, HUNDREDS, TENS, and ONES. Output the converted amount.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Make a C program:

Input an AMOUNT (long integer) in PESO(up to 6 digits for up to thousands place value), determine its equivalent denimination in THOUSANDS, HUNDREDS, TENS, and ONES. Output the converted amount.

• Recall the syntax of the basic program control structures such as,
sequential, conditional/selection, and loops and iteration
• Implement programs on sequential, conditional and loops structure
in C.
• Appreciate the importance of.conditional and loops construction in a
Objectives:
program
• Use the while, do-while, and for loop statements
· Apply break and continue
• Construct and use a counter-controlled, sentinel-controlled and flag-
controlled repetition structures
• Implement nested control structures.
Description
Input an AMOUNT(long integer) in PESO(up to 6 digits for up to
thousands place value) determine its equivalent denomination
in THOUSANDS.HUNDREDS.TENS.and ONES.Output the converted amount.
Hint: use divide to solve how many thousands.hundreds and so on
and modulo % to get the remainder
***don't use conditional structure it0
SAMPLE linput & output LAYOUT:
Enter AMOUNT in PESO: 16525
AMOUNT DENOMINATION: 16 THOUSANDS
5 HUNDREDS
2 TENS
5 ONES
Sample Output if Applicable
a Z:ACCS122-1L13FBC-1VEXER1.EXE
Enter AHOUNT in PESO:
789234
789
THOUSANDS
HUNDREDS
TENS
ONES
ENew
Transcribed Image Text:• Recall the syntax of the basic program control structures such as, sequential, conditional/selection, and loops and iteration • Implement programs on sequential, conditional and loops structure in C. • Appreciate the importance of.conditional and loops construction in a Objectives: program • Use the while, do-while, and for loop statements · Apply break and continue • Construct and use a counter-controlled, sentinel-controlled and flag- controlled repetition structures • Implement nested control structures. Description Input an AMOUNT(long integer) in PESO(up to 6 digits for up to thousands place value) determine its equivalent denomination in THOUSANDS.HUNDREDS.TENS.and ONES.Output the converted amount. Hint: use divide to solve how many thousands.hundreds and so on and modulo % to get the remainder ***don't use conditional structure it0 SAMPLE linput & output LAYOUT: Enter AMOUNT in PESO: 16525 AMOUNT DENOMINATION: 16 THOUSANDS 5 HUNDREDS 2 TENS 5 ONES Sample Output if Applicable a Z:ACCS122-1L13FBC-1VEXER1.EXE Enter AHOUNT in PESO: 789234 789 THOUSANDS HUNDREDS TENS ONES ENew
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY