Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part2 shapes.c will contain the source code of a C program that prints the shapes below: **** Part 2: ASCII and data types 1. The
Part2
shapes.c will contain the source code of a C program that prints the shapes below: **** Part 2: ASCII and data types 1. The characters printed in Part 1 are ASCII characters with given values (see table from our lecture slides). The 7 characters printed in shapes.out are -_Il: + * What are their decimal values? 2. Create a copy of your C program shapes.c with cp and name it newshapes.c. 3. Modify newshapes.c so that it prints the same image as in shapes.out but uses different characters. The ASCII decimal values of the new characters are the decimal values of the original characters (listed above in 1) minus 9. For instance, has a 45 value in ASCII, so the new character would be the one whose value is 36. This new character will be printed where all are placed originally in shapes.out. Hints: Make - 9 a constant in your program called SHIFT using #define or const Keep your program clear and concise by declaring new variables when needed. shapes.c will contain the source code of a C program that prints the shapes below: **** Part 2: ASCII and data types 1. The characters printed in Part 1 are ASCII characters with given values (see table from our lecture slides). The 7 characters printed in shapes.out are -_Il: + * What are their decimal values? 2. Create a copy of your C program shapes.c with cp and name it newshapes.c. 3. Modify newshapes.c so that it prints the same image as in shapes.out but uses different characters. The ASCII decimal values of the new characters are the decimal values of the original characters (listed above in 1) minus 9. For instance, has a 45 value in ASCII, so the new character would be the one whose value is 36. This new character will be printed where all are placed originally in shapes.out. Hints: Make - 9 a constant in your program called SHIFT using #define or const Keep your program clear and concise by declaring new variables when neededStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started