Answer:
The solution code is written in Python:
- a = int(input("Input first dish time: "))
- b = int(input("Input extra minutes: "))
- t = int(input("Input time available: "))
-
- dishesCount = 1
- currentTotal = a + b
-
- while(currentTotal <= t):
- dishesCount += 1
- currentTotal += currentTotal + b
-
- print("Number of dishes can be prepared: " + str(dishesCount))
Explanation:
Firstly, prompt user to input the first dish time, extra minutes and time available and assign the values to variable a, b and t, respectively (Line 1-3).
Next, create variable dishesCount to hold the number of dishes can be prepared (Line 5).
Get the current total time by adding a and b and assign it to variable currentTotal (Line 6).
While the currentTotal is less than or equal to t, increment the dishesCount by one and then add the hour of current dish to the currentTotal (Line 9-10).
At last, display the number of dishes that can be prepared in t minutes (Line 12).
Answer:So if your in a situation where you need 1 of those words then your strategy would come in handy.
Explanation:
Process is the component achieved.
Answer:
The answer to the given question is option "d".
Explanation:
In C++ programming language we use the (:) colon to perform inheritance in the class. The by default access modifier is used for inheritance that is "private". In the given options the option d is correct and other options are not correct that cab be described as:
- In option, a, b we use the scope resolution operator (::) that is not used for inheritance.
- In option, c we inherit drive class to base class that is not correct.
That's why the answer to this question is option "d".