Question

C++ USE WHILE LOOP PLEASE IN CLASS HURRY Write a code in visual studios C++ that...

C++ USE WHILE LOOP PLEASE IN CLASS HURRY

Write a code in visual studios C++ that executes the following:

- Ask the user which variable they would like to sweep. You can ask them to choose between options 1-5, listing what those options are, and based on their selection, ask the relevant question using a branching routine. Alternatives are as follows (the user needs to choose one from these options):

1) Cost of cashier per hour (in dollars). Sweep range: $10-50 in $1 increments.

2) Cost of wait time per customer per minute (in cents). Sweep range: ¢1-¢20 in ¢1 increments.

3) Number of cashiers. Sweep range: integers between 1-5.

4) Maximum interarrival time. Sweep range: integers between 2-10.

5) Maximum service time. Sweep range: integers between 2-30.

Use the default values of $25 for cashier cost per hour, ¢3 wait time cost per customer per minute, 3 cashiers, 1 minute minimum interarrival time, 6 minute maximum interarrival time, 1 minute minimum service time, and 20 minute maximum service time. Whichever option is selected, the value entered by the user should overwrite the default value for that option. Then, calculate the expected value of the total cost based on the information you receive from the user for the complete range. Show the user on the screen what the expected total cost is going to be for each value within the sweep range.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

page O prosran using sy otem using Syatem collections Genexic usng System.Line: ig stem.Tet tuing System. Thrtnding.Tosty) napang e② List Allvalues Add (canhter cost: else Should be $105o) pev minute (in cents): Ciat All voluen. Add tios d wat e elacPage③ minute vange shoutd be 1-J Consolewrite maximum may Intevval Time int Powne (tonsole. Read dne) int er arvival time Lpage pole wnite InEnter ftvat value whrch yo int input fivat valne-int. Parse (console. R int swar value Add Cinput fvst valupage

Add a comment
Know the answer?
Add Answer to:
C++ USE WHILE LOOP PLEASE IN CLASS HURRY Write a code in visual studios C++ that...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • C++ PLEASE UN 15 MINUTES IN CLASS USE WHILE LOOP Write a code in visual studios...

    C++ PLEASE UN 15 MINUTES IN CLASS USE WHILE LOOP Write a code in visual studios C++ that executes the following: - Ask the user which variable they would like to sweep. You can ask them to choose between options 1-5, listing what those options are, and based on their selection, ask the relevant question using a branching routine. Alternatives are as follows (the user needs to choose one from these options): 1) Cost of cashier per hour (in dollars)....

  • Java Project For this assignment, you will write a simulation program to determine the average waiting...

    Java Project For this assignment, you will write a simulation program to determine the average waiting time at a grocery store checkout while varying the number of customers and the number of checkout lanes. Classes needed: SortedLinked List: Implement a generic sorted singly-linked list which contains all of the elements included in the unsorted linked list developed in class, but modifies it in the following way: delete the addfirst, addlast, and add(index) methods and instead include a single add method...

  • Needs Help with Java programming language For this assignment, you need to write a simulation program...

    Needs Help with Java programming language For this assignment, you need to write a simulation program to determine the average waiting time at a grocery store checkout while varying the number of customers and the number of checkout lanes. Classes needed: SortedLinked List: Implement a generic sorted singly-linked list which contains all of the elements included in the unsorted linked list developed in class, but modifies it in the following way: • delete the addfirst, addlast, and add(index) methods and...

  • This is in c programming using functions in visual studios Carpet Jolb A carpeting company wants...

    This is in c programming using functions in visual studios Carpet Jolb A carpeting company wants to estimate what it will cost a customer to have a room carpeted. They can carpet 65 sq. ft. of room space in 4 hours, and they charge $25.00 per hour as their labor rate Write a program to ask the user for the length of the room (in inches) to be carpeted, the width of the room (in inches) to be carpeted, and...

  • Please help me to try to better understand how to write an algorithm and then write...

    Please help me to try to better understand how to write an algorithm and then write the code in C language. Create a flowchart for the design to perform the following task and then implement a program that computes the distance traveled by a car moving at a constant speed for a specific amount of time. This program must understand different units of measurement for speed, time, and distance. The algorithm will ask the user for the following information: The...

  • NOTE – You may use C++ - but you MAY NOT use #include <string> The goal...

    NOTE – You may use C++ - but you MAY NOT use #include <string> The goal is to use C-Style character array based strings. You will put all of your code in this file. You may use any technique we have learned so far. Specifications: This assignment is split into several parts. The goal is to get you used to working with C/C++ run-time arrays and strings. Part 0 – Create a Menu You should create a menu that gives...

  • QUESTION: DATA FOR QUESTION: 52 You need to use cell referencing so I can track your...

    QUESTION: DATA FOR QUESTION: 52 You need to use cell referencing so I can track your calculations in Excel and to perform what-if analysis for E. 53 54 a. Determine the monthly operating costs of a machine when cost assignments are 55 based on the number of machines. Conceptually this is like the plantwide overhead rate per unit. 56 Hint: Do not make this complicated, since you are given the total overhead cost and know there are 10 machines. A...

  • Write MIPS code, please. Following: Write a program to be used by the Wisconsin DNR to...

    Write MIPS code, please. Following: Write a program to be used by the Wisconsin DNR to track the number of Deer Hunting Licenses issued in a county and the state. It will display a menu with 5 choices numbered 1-5. They are (1) update the count, (2) display the number of licenses already issued to a county whose number is input, (3) display the county number and the number of licenses already issued to a range of counties whose starting...

  • USE of C++ please Write a program that achieves the following requirements: 1. A while/do-While loop...

    USE of C++ please Write a program that achieves the following requirements: 1. A while/do-While loop that will ask the user to input an integer on each iteration. The loop keeps a running total of the input and exits only when the total exceeds the first input times 10. 2. A for loop that does the exact same thing. The program should print out the *new* total each time the total is input.

  • Write the code in C with all the right output please. Problem: In this assignment you...

    Write the code in C with all the right output please. Problem: In this assignment you will analyze a data set of 10,000 randomly generated integers. From this data set you will display a count of the prime numbers that are greater than the average (double) of the entire data set. The user will input only a single integer value to serve as the seed for the random number generator. The use of a common seed will result in output...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT