Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c# Additional requirements: Use the Write() method to displayirumts Use the exact prompts as shown for each problem. Some problems require you to use specific

c#
image text in transcribed
Additional requirements: Use the Write() method to displayirumts Use the exact prompts as shown for each problem. Some problems require you to use specific conversion method. May sure to use the right one Some problems require you to use specificering formatting techniques. Make sure to use the right one. Some problems require you to use other pecific features and techniques. Besert Problem 130 points Worken ata candy factor who was greater number of chocolates are there Prompt a worker to enter the number of chocolates the wrapped, use the table below to ste their per-chocolate payment and display the total amount they camed After their earned amount has been displayed, loop tea and as far a quantity for at worker. Make this aposttest loop using a sentinel value of $99 to end Requirements: Use the appropriateloping construct for a politiet op You can asume that the user provides valid numeric input, but you may any conversion method Parse(), Convert) or TryParse()) convert the string to a number Use curate and efficient mong checks to determine pre pe piece Use one and only one WriteLine to produce your output hint outside of the range check decision structure, perhaps? . Make sure dolaramounts are printed using Currency formatting Apart from that, you may use any technique for formatting the string placeholders,concatenation string terpolation) You do not need to build constants to hold the various are boundary Number of Chocolates Payment per Chocolate Card below Oto 500 (non inclusive) 0.73 500 to 1000 indlusive 1.58 Over 1000 2.35 Your output should look like the comples on the next page. The yellow pics ficuteerime Page 2 PROG 110 Midterm Exam-Fall 2020 Example Output ** PROLIM 1 How many pieces Enter any whole under or -999 to quit 10 At the pieces at 58.73 per piece, you've earned $73.06. How many pieces Enter any whole ruter or -1 to quito At pieces at 50. per piece, you've earned 58.00 How many pieces tnter my whole number or to suit: 1000 At 100 places at 51.5 plece, you've $1,5m. How many pieces? Enter a whole number or -99 to outt: 1000 Atre teces at 52.35 per piece, you've med $22.9. How many pieces? Enter any whole number or -999 to quit: -50 At-se pieces at 58.0 per piece, you've came 5.0 How many pieces? Enter a whole number or -999 to quit -999

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

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

Students also viewed these Databases questions

Question

6. Be able to choose and prepare a training site.

Answered: 1 week ago