Create a program that will take in an input integer number from the user.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 14E: In Chapter 4, you created a program that generates a random number, allows a user to guess it, and...
icon
Related questions
icon
Concept explainers
Question

Instructions:

  • Use the C programming language. Do not use any other programming language like Python.
  • Write one C file only for this problem.
  • Only use variable declarations, assignments, operations, conditional constructs, and iterative constructs.
    • Input should be taken in a value from the user (use scanf).
    • Be sure to use loops to complete the solution.
    • The use of functions is optional.
Problem:
Create a program that will take in an input integer number from the user. And will display each digit in word form. However, three digits will instead be shown as an enlarged font. These
digits are 2, 4 and 5. These digits will be displayed in an arrangement of asterisks (*). The size of the digits will be based on the digit previous to the enlarged digit. If the first digit fed is
an enlarged input, then the default size is 5.
*******
*******
*
*******
*****
*****
Digit: 2
Size : 5
Digit: 4
Size : 5
Digit: 5
size : 5
Digit: 2
Size : 7
Digit: 4
Size : 7
Digit: 5
Size : 7
Example enlarged
Assume the following:
• The user will always input the correct input. No need to include error correction.
Before the enlarged inputs, the digit before should be an odd number.
• The left-most digit and right-most is never zero.
Transcribed Image Text:Problem: Create a program that will take in an input integer number from the user. And will display each digit in word form. However, three digits will instead be shown as an enlarged font. These digits are 2, 4 and 5. These digits will be displayed in an arrangement of asterisks (*). The size of the digits will be based on the digit previous to the enlarged digit. If the first digit fed is an enlarged input, then the default size is 5. ******* ******* * ******* ***** ***** Digit: 2 Size : 5 Digit: 4 Size : 5 Digit: 5 size : 5 Digit: 2 Size : 7 Digit: 4 Size : 7 Digit: 5 Size : 7 Example enlarged Assume the following: • The user will always input the correct input. No need to include error correction. Before the enlarged inputs, the digit before should be an odd number. • The left-most digit and right-most is never zero.
Sample Input and Output:
Number: 727475
Number: 13579206
Number: 495528
seven
one
three
***
***
***
seven
nine
nine
seven
seven
zero
six
eight
Transcribed Image Text:Sample Input and Output: Number: 727475 Number: 13579206 Number: 495528 seven one three *** *** *** seven nine nine seven seven zero six eight
Expert Solution
steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning