Need help on how to write using C sharp coding?We want to write a program for a coffee machine. The user should chose between three sizes Problem 3. (“Small”, “Medium” or “Large”) and a type of roast (“Light”, “Medium” or “Dark”). Then, the user should be given an amount to pay: a small coffee is $1.00, a applied for the dark roast. Finally, the user should be asked how much they want to tip ($0.00 being possible, but not negative numbers), and the program should display the total. For the selection of the coffee, you can ask the user to enter only one letter, the whole string, a number that medium one is $1.20, a large one is $1.50, and a 10 % extra fee is anything that on all the data given by the user. Below is an corresponds to the choice, appropriate, but you have to perform user input validation seems example of running the program where user input is underlined, and hitting “return” is represented by . You do not have to reproduce it exactly, it is just to illustrate the expected behavior small (1), Do you want a a medium (2) or a large (3) coffee? Se Do you want a small (1) medium (2) or a large (3) coffee? Do you want a (L)ight, a (M) edium or a (D) ark small coffee? De A small dark coffee is $1.10. How much do you want to tip? -3 How much do you want to tip? 0.9 Your total is $2.00 Note that the next page is blank as well, to leave you enough room to write this program. Show transcribed image text We want to write a program for a coffee machine. The user should chose between three sizes Problem 3. (“Small”, “Medium” or “Large”) and a type of roast (“Light”, “Medium” or “Dark”). Then, the user should be given an amount to pay: a small coffee is $1.00, a applied for the dark roast. Finally, the user should be asked how much they want to tip ($0.00 being possible, but not negative numbers), and the program should display the total. For the selection of the coffee, you can ask the user to enter only one letter, the whole string, a number that medium one is $1.20, a large one is $1.50, and a 10 % extra fee is anything that on all the data given by the user. Below is an corresponds to the choice, appropriate, but you have to perform user input validation seems example of running the program where user input is underlined, and hitting “return” is represented by . You do not have to reproduce it exactly, it is just to illustrate the expected behavior small (1), Do you want a a medium (2) or a large (3) coffee? Se Do you want a small (1) medium (2) or a large (3) coffee? Do you want a (L)ight, a (M) edium or a (D) ark small coffee? De A small dark coffee is $1.10. How much do you want to tip? -3 How much do you want to tip? 0.9 Your total is $2.00 Note that the next page is blank as well, to leave you enough room to write this program.
Expert Answer
Answer to We want to write a program for a coffee machine. The user should chose between three sizes Problem 3. (“Small”, “Medium”…