1. A microwave oven manufacturer recommends that when heating two items, add 50% to the heating time, and when heating three items double the heating time. Heating more than three items at once is not recommended. Write a program that asks the user for the number of items and the single-item heating time. The program then writes out the recommended heating time.
Answers
Answered by
0
Answer:
Additionalknowledge
Knowledge about Quadratic equations -
★ Sum of zeros of any quadratic equation is given by ➝ α+β = -b/a
★ Product of zeros of any quadratic equation is given by ➝ αβ = c/a
★ A quadratic equation have 2 roots
★ ax² + bx + c = 0 is the general form of quadratic equation
✌️✌️✌️
Answered by
0
Answer:
#include<iostream>
using namespace std;
int main()
{
double i,j,b,a;
cin>>i>>j;
a=2*j;
b=((j/100)*50);
if(i<=2)
{
cout<<(a-b);
}
else if(i==3)
{
cout<<(2*j);
}
else
{
cout<<"Number of items is more";
}
}
Explanation:
we doubled the heating than subtracted 50%
Similar questions