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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education