Answered step by step
Verified Expert Solution
Question
1 Approved Answer
help, using matlab using matlab In this problem, you will be writing a program that asks the user for their ideal coffee and how much
help, using matlab
using matlab
In this problem, you will be writing a program that asks the user for their ideal coffee and how much they would be willing to pay in a poll. Make sure to separate all input statements and fprintf statements by a line (i.e., each step below should print in a new line in the Command Window when run). a) Ask the user to input their favorite type of coffee. The input should be a string. b) Ask the user to input what type of milk they want in their coffee. The input should be a string. c) Ask the user to input what type of sweetener they like in their coffee. The input should be a string. d) Ask the user to input how much they would be willing to pay for this drink. The input should be a number. e) Output the user's ideal coffee order based on the user's inputs using fprintf. The order should have the following format. The bold arguments represent the user inputs. I would pay $5.23 for a caramel latte with no sugar and almond milk. *Note: Make sure you use the correct field types in the fprintf statements to match the example above. Do not include the bold formatting in your statement, the bolded inputs in the example are just there to show where the user inputs will be displayedStep 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