Question: Question No . 1 : [ 6 Marks ] Write a function named digit _ name ( ) that takes one integer argument, and

Question No.1:
[6 Marks]
Write a function named "digit_name()" that takes one integer argument, and prints the English name for that integer on the computer screen.
The function should not return a value. If the argument is not in the required range (from 0 to 9), the function should print "Digit Error".
Also, write another function named "check_bool()" that takes one argument as a character and returns a boolean value. The function returns TRUE if the argument that is passed is vowels "a, e,i,o,u. The function returns FALSE if otherwise.
For example:
\table[[When user enter,Output],[7,Seven],[0,Zero],[8,Eight],[15,Digit Error]]
In the main () function prompt the user to enter one integer, and one character value then call the function "digit_name()" and "check_bool()"correctly.
NOTE: Create function prototype and function definition for both functions
HINT: USE appropriate input/ output messages and correct data types.
Question No . 1 : [ 6 Marks ] Write a function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!