Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

80 HR ethics and professional standards.

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago