Question: his program will contain 5 user defined functions: int GetInt(void); double GetDouble(void); char GetInitial(void); int FunctionOne(int arg1, double arg2); int FunctionTwo(char arg1); Description: // gets
his program will contain 5 user defined functions: int GetInt(void); double GetDouble(void); char GetInitial(void); int FunctionOne(int arg1, double arg2); int FunctionTwo(char arg1); Description: // gets an integer from the user and returns it int GetInt(void); // gets a double from the user and returns it double GetDouble(void); // gets a letter from the user and returns it char GetInitial(void); // takes two arguments, an integer and a double // adds 10 to the integer //multiplies the double argument by .5 and prints the result onto the screen //returns the result of integer addition int FunctionOne( int arg1, double arg2); // takes one character argument and returns and integer //change the letter to uppercase (use ctype.h) //return a 1 if the letter is in the first half of the alphabet(A-M) //return a 2 if the letter is in the second half of the alphabet (N-Z) int FunctionTwo(char arg1); Main function logic: declare variables call GetInt, GetDouble, and GetInitial pass the inputs to FunctionOne and FunctionTwo print the integer with the 10 added to it print a 1 or a 2 based on the initial that was entered
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
