Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help on program 7 the program needs to be starting with starting with #define _CRT_SECURE_NO_WARNINGS #include #include and ending with: system(PAUSE); Please work overtime.

image text in transcribed

Need help on program 7

the program needs to be starting with

starting with

#define _CRT_SECURE_NO_WARNINGS

#include

#include

and ending with:

system("PAUSE");

Please

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 array 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 array

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

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students also viewed these Databases questions