1. Engineering
  2. Computer Science
  3. the source code file for the following assignment should be...

Question: the source code file for the following assignment should be...

Question details

The source code file for the following assignment should be turned into the Homework 2 assignment on Blackboard for a grade. The code will be built and tested using gcc under Cygwin. In the Tutorials Point C library reference, there is documentation for the printf() function that includes an example of using printf. You should use this example code as a guide: https://www.tutorialspoint.com/c_standard_library/c_function_printf.htm For homework 2 create a C program that prints your banner from homework 1 and then prints the ASCII values and characters from 60 to 115 along with: • The values in Octal • The values in Hex • The pointer values • The decimal value with a percent character ‘%’ after it • The backslash character ‘\’ before the Hex value An example (after the banner) might look like … ASCII= 82, Char= R, Oct= 122, Hex= 52, Point= 0x52, Pct= 82%, Slash= \52 ASCII= 83, Char= S, Oct= 123, Hex= 53, Point= 0x53, Pct= 83%, Slash= \53 ASCII= 84, Char= T, Oct= 124, Hex= 54, Point= 0x54, Pct= 84%, Slash= \54 … See Blackboard for due date. Please upload the source code only to the Blackboard assignment for homework #2. Do not upload any other files. Just source code with a .c file extension.   

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution