(1) Write a C program with calls to functions to produce the output given below.
(2) The program should display the output to screen as
CIS 6 – Introduction to C Programming
Laney College
YourName
Assignment Information --
Assignment Number: Homework 3,
Coding Assignment -- Exercise #1
Written by: YourName
Submitted Date: Due Date
You need to replace "Your Name" with your real name and Due Date with the specified due date.
The above result should come from a call to a function named as displayClassInfoYourName(), where YourName must be replaced by your first name and your last name initial. For examples, if your name is John Smith then YourName should be JohnS throughout all of your work/code as mentioned.
(3) The program will then continue to call other functions and display the results as follows,
// --------------- RUN #1 ---------------
// OUTPUT – Sample Run #1
CIS 6 – Introduction to C Programming
Laney College
YourName
Assignment Information --
Assignment Number: Homework 3,
Coding Assignment -- Exercise #1
Written by: YourName
Submitted Date: Due Date
Calling extractDigit1YourName()
Enter a floating-point: 12385.456
12385.456000 is a positive value!
The integral portion of 12385.456000 is 12385!
After the function extractDigit1YourName() finished and returned:
1-digit : 5
Calling extractDigit10YourName()
Enter a floating-point: 12385.456
12385.456000 is a positive value!
The integral portion of 12385.456000 is 12385!
After the function extractDigit10YourName() finshed and returned:
10-digit : 8
// --------------- RUN #2 ---------------
// OUTPUT – Sample Run #2
CIS 6 – Introduction to C Programming
Laney College
YourName
Assignment Information --
Assignment Number: Homework 3,
Coding Assignment -- Exercise #1
Written by: YourName
Submitted Date: Due Date
Calling extractDigit1YourName()
Enter a floating-point: -12385.456
-12385.456000 is a negative value!
The integral portion of -12385.456000 is -12385!
After the function extractDigit1YourName() finished and returned:
1-digit : 5
Calling extractDigit10YourName()
Enter a floating-point: -12385.456
112385.456000 is a negative value!
The integral portion of -12385.456000 is -12385!
After the function extractDigit10YourName() finshed and returned:
10-digit : 8
// --------------- RUN #3 ---------------
// OUTPUT – Sample Run #3
CIS 6 – Introduction to C Programming
Laney College
YourName
Assignment Information --
Assignment Number: Homework 3,
Coding Assignment -- Exercise #1
Written by: YourName
Submitted Date: Due Date
Calling extractDigit1YourName()
Enter a floating-point: -1230.456
-1230.456000 is a negative value!
The integral portion of -1230.456000 is -1230!
After the function extractDigit1YourName() finished and returned:
1-digit :0
Calling extractDigit10YourName()
Enter a floating-point: -1230.456
-1230.456000 is a negative value!
The integral portion of -1230.456000 is -1230!
After the function extractDigit10YourName() finshed and returned:
10-digit : 3
// --------------- RUN #4 ---------------
// OUTPUT – Sample Run #4
CIS 6 – Introduction to C Programming
Laney College
YourName
Assignment Information --
Assignment Number: Homework 3,
Coding Assignment -- Exercise #1
Written by: YourName
Submitted Date: Due Date
Calling extractDigit1YourName()
Enter a floating-point: -0.456
-0.456000 is a negative value!
The integral portion of -0.456000 is 0!
After the function extractDigit1YourName() finished and returned:
1-digit :0
Calling extractDigit10YourName()
Enter a floating-point: -1230.456
-0.456000 is a negative value!
The integral portion of -0.456000 is 0!
After the function extractDigit10YourName() finshed and returned:
10-digit : 0
Your program should have and use the following functions,
displayClassInfoYourName()
extractDigit1YourName()
extractDigit10YourName()
where YourName must be replaced by your first name and your last name initial. For examples, if your name is John Smith then YourName should be JohnS throughout all of your work/code as mentioned.
You must run your program four (4) times to produce the output as shown.
(4) Save the program as cis6Fall2019YourNameHw3Ex1.c; and
(5) The above output should be copied and added to the end of the code in the OUTPUT comment block.