
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
![Problem 3
Write a Matlab program that calculates the efficiency of a stove-top burner given inputs
on the time it takes to boil 1 gal of water. The user should input values for the initial
temperature of the water (F), the time it takes to boil, the brand name of the appliance,
and the power rating. Using the calculated efficiency and intermediate values, print the
output statement: (test case shown; note the alignment, spacing, and percent symbol)
Household Appliance Efficiency Calculator: Stove
Type the initial room temperature of the water [deg F]: 68
Type the time it takes the water to boil [min]: 21
Type the brand name and model of your stove: Krispy 32-z
Type the power of the stove-top burner [W]: 1200
Energy required:
1267909 J
Power used by burner:
1006 W
Burner efficiency for a Krispy 32-z stove: 83.9%](https://content.bartleby.com/qna-images/question/3e5b5646-0dcd-4024-88df-66764017b369/54a2608c-baf8-4693-92ee-d4b2e7a3aa0a/skni0vf_thumbnail.jpeg)
Transcribed Image Text:Problem 3
Write a Matlab program that calculates the efficiency of a stove-top burner given inputs
on the time it takes to boil 1 gal of water. The user should input values for the initial
temperature of the water (F), the time it takes to boil, the brand name of the appliance,
and the power rating. Using the calculated efficiency and intermediate values, print the
output statement: (test case shown; note the alignment, spacing, and percent symbol)
Household Appliance Efficiency Calculator: Stove
Type the initial room temperature of the water [deg F]: 68
Type the time it takes the water to boil [min]: 21
Type the brand name and model of your stove: Krispy 32-z
Type the power of the stove-top burner [W]: 1200
Energy required:
1267909 J
Power used by burner:
1006 W
Burner efficiency for a Krispy 32-z stove: 83.9%
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images

Knowledge Booster
Similar questions
- b) A sequence of numbers is given by the equation; Xn+2 = Xn+1+ Χη xn ie if X₁ and x2 = 1 then x3= 1+1 =2. Create code in MATLAB that will calculate the first 12 terms of this sequence, with the values x1 and x2 being the last 2 digits of your student number (if it is 0 assume it is 1 instead).arrow_forwardProblem 2 The Eco-Marathon is a competition in which participants build special vehicles to achieve the highest possible fuel efficiency. The current record of 10705 mi/gal was set by a vehicle using ethanol as fuel. Write a Matlab program to calculate how far the vehicle will travel given a user-specified amount of ethanol provided in grams. Express this distance in units of km. The specific gravity of ethanol is 0.789. Using the calculated distance, print the following output statement: (test case shown) Enter the mass of ethanol [grams] : 100 The distance the vehicle traveled is 577 kilometers.arrow_forwardPROBLEM: Write a C++ program that will allow the user to input the First Name, Last name, Middle Initial, and grade of a student. The following conditions must be observed: If the grade input is 96-100, the remark is " you performed an excellent job! Keep it up !" If the grade input is 91-95, the remark is " you performed a very satisfactory Job! Keep it up !" If the grade input is 86-90, the remark is " you have satisfactory performance, you can improve some more. " If the grade input is 80-85, the remark is " your performance is fair, try harder" If the grade input is 75-79, the remark is " your performance needs Improvement, you can do it" If the grade input is below 75, the remark is " we're sorry but you failed, we know you can do better next time" а. b. c. d. е. f. SPECIFICATIONS that you need to follow: - You may only use the codes that we studied under our lectures. - All lines of codes should have a comment. - Save and Submit your cpp file as Surname - PE (Example: Pangaliman…arrow_forward
- ANSWER LETTER B USE FLOWCHART IN DESIGNING THE LOGICarrow_forward*Modify the program so that the user will error trap for only 1 and 0 as an input. *If the user enters an input other than 1 or 0 display an error message and request the user enter that input again. *Do this for all inputs in the code. # User defined function for logic OR# The function takes two parameters and returns a single intdef OR(a: int, b: int)->int:# If a is equal to 1 return 1if a == 1 :return 1# If b is equal to 1 return 1elif b == 1 :return 1# If a and b is equal to 0 return 0else :return 0 # User defined function for logic NOR# The function takes two parameters and returns a single intdef NOR(a: int, b: int)->int:# If a is equal to 0 and b is also equal to 0 return 1if a == 0 and b == 0 :return 1# If a is equal to 0 and b is equal to 1 return 0elif a == 0 and b == 1 :return 0# If a is equal to 1 and b is also equal to 0 return 0elif a == 1 and b == 0 :return 0# If a is equal to 1 and b is also equal to 1 return 0elif a == 1 and b == 1 :return 0 # User defined…arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON

Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY