Zookal
Zookal

We’d love to hear any feedback or comment from you!

© 2011-2021 Zookal Pty Ltd

View question and answer

From our collection of questions and answers
Engineering · Computer Science
Question details

Solve Using

#include <studio.h>

#include<stdlib.h>

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 printf statement. Watch for instructions that specify a symbolic
constant and assign that symbolic constant in all capital letters and using the #define. Thank you.
The “xxxx” in a sample output will show locations 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 userdefined 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 loop; complete this
program without using “break” to exit a loop. Complete this problem without using pointers; Write a single program with user-defined function(s) and random numbers that asks the user to guess a number in therange 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 based on play again - yes or no. The random numbers must use a seed so that each time there is a different 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
“randomly” “randomized” number. That random number is returned to the main. The main program also calls a 3rd user defined function (UDF3) that has the job to ask the user for a guess of a number within the specified 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
guess. The main program will ask if the user wants to play again. Follow the sample output and provide a copy of the program output in the program as a comment.
(use the following filename system: lastname_fun_guess_firstinitial.c) Sample Output Name and date: Joseph Hamilton Course and section: ENGR 197 and Class # Problem: C programming assignment information

Statement: A brief description of what the program does
Please enter today’s numerical day of the month: 17

A number has been generated in the range of 10 to 100. Can you guess the number?

Please type your first guess: 50

Too low, try again

Please enter your next guess: 80

Too high, try again

Please enter your next guess: 70

Too high, try again

Please enter your next guess: 60

Too low, try again

Please enter your next guess: 65

Too high, try again

Please enter your next guess: 64

Too high, try again

Please enter your next guess: 63

Excellent! You guessed the number!

Would you like to play again (yes = y or no = n)? y


Please enter today’s numerical day of the month: 24

A number has been generated in the range of 10 to 100.

Can you guess the number? Please type your first guess: 50

Too high, try again Please enter your next guess: 25

Too high, try again Please enter your next guess: 15

Too low, try again Please enter your next guess: 17

Too high, try again Please enter your next guess: 16

Excellent! You guessed the number!

Would you like to play again (yes = y or no = n)? n

Thanks for playing!
Press any key to continue . . .

Answer
Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.

Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.Find step-by-step answers from expert tutors to questions asked by students like you. Start 14-day free trial.