Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help with program 7 and 8. starting with #define _CRT_SECURE_NO_WARNINGS #include #include and ending with: system(PAUSE); Please and Thank You work overtime. (For
I need help with program 7 and 8.
starting with
#define _CRT_SECURE_NO_WARNINGS
#include
#include
and ending with:
system("PAUSE");
Please and Thank You
work overtime. (For the data given, 2 employees worked overtime, that is over 40 hours.) Program 4: A Wheel of Fortune has 21 slots on it. 8 slots are labelled $1, 6 slots are labelled $2, 4 slots are labelled $5, 2 slots are labelled 10S, and one slot is labelled $25. In this game, the user is asked for the amount of money they want to bet along with their guess as to which slot the wheel will stop at when spun Write a C program that will ask the user for these inputs, randomly spin the wheel once, and print out the result and the money amount that the user won or lost. If the user guesses the correct slot, the user wins the bet made correct wheel slot; otherwise, the user loses the bet made. Program 5: Write a C program which includes the following functions with parameter passing: Function 1: Allow the user to enter 3 distinct integer values Function 2: Print the 3 integer values Function 3: Use the return statement to return the middle value of the 3 integer values. Print the middle value in the main Function 4: Sort the 3 integer values from high to low. Upon returning to the main, use your print function to print the 3 integer values in sorted order. Program 6: Rewrite Program 3 using appropriate functions and parameter passing. Also, please include a structure chart for your program which you can either create by hand or on the computer Program 7: Rewrite Program 6 using a looping stalement. You may use either a while loop, do koop, or for loop. Please include a brief statement in a conment statement in your program stating the assumptions you made to pick your looping statement That is, if the loop is deterministic or indeterministic and if the loop is entrance-controlled or exit-controlled Program 8: Write a C program that picks a random number from 1 to 100. Allow the user to guess the random number by printing if each guess is higher or lower than the random number. If the user cannot guess the random number in 8 guesses, print out the random number picked. If the user guesses the number in 8 or fewer guesses, print how many guesses it tock the user to guess the random number Program 9: Write a C program which uses the following functions for an array of 8 names: a. Load the array from the keyboard. b. Print the array. c. Sort the array in descending order Print the array again using the same print function from b e. Allow the user to enter a full name and search for the ful name in the array Printfound. if the full name is in the array or print 'not found" if the full name is not in the arrayStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started