Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Submit the source code (your filename.c file) electronically and on paper as a hard copy. Include copy of the results as comment lines in the

image text in transcribedimage text in transcribed

Submit the source code (your filename.c file) electronically and on paper as a hard copy. Include copy of the results as comment lines in the completed program. All source code must be in a filename.c format. No other formats will be accepted Phase I General Preprocessing items: Use mnemonic variables of 3 characters or more. Use void main (void) or void main in your program and leave off the return 0. Use double as the choice for all floating point values. Add heading items using as printfstatement. Watch for instructions that specify constant and assign that symbolic constant in all capital letters and using the #define. Thank you. The "xxxx" in a sample output will show ations that the computer program will transfer values Phase II General procedures: A line of information in the program should be no longer than 80 characters. All user-defined function problems should include the student's last name as part of their function name. All user. defined function written for the class must have a prototype. Prototypes should be placed before the main. The user-defined functions will be located in the program after the main program Note: Our class must have all of its results, variables, outputs stored in memory Recall: The "xxxx" in a sample output will show locations that the computer program will transfer values Problem 1 Notes: Complete this program without using exit" to leave a loo complete this program without using "break" to exit a loop. Complete this problem without usin ointers Write a single program with user-defined function(s) and random numbers that asks the user to guess a number in the range of 10 to 100. The program helps the user find the number by telling the user if the guess is "too high" or if the guess is "too low". The program gives a chance to play again for unlimited amount of times yes or no. The random numbers must use a seed so that each time there is a different based on play again number to guess. Remember: All user-defined function problems should include the student's last name as part of their function name. All user-defined function written for the class must have a prototype. Prototypes should be placed before the main. The user-defined functions will be located in the program after the main program The main program is used to call the 1st user defined function (UDF1) that has the job to print the heading. The main program also calls the 2nd user defined function (UDF2) that has the task of asking for the numeric day of the month and uses that number to seed the random number generator and produce a randomized" number. That random number is turned to the main. The main program also "randomly calls a 3rd user defined function (UDF3) that has the job to ask the user for a guess of a number within the pecified range and returns the guess to the main program Finally, the main program must check the guess for too high and/or for too low values and for the correct will ask if the user wants to play again. Follow the sample output and provide a guess. The main program copy of the program output in the program as a comment (use the following filename system: lastname fun guess firstinitial.c)

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

=+5 Does this case provide an example of the future for IHRM?

Answered: 1 week ago

Question

=+4 How did it affect HR?

Answered: 1 week ago