Answer:
28 years
Explanation:
Let's represent present age of Chris and Dom as C and D respectively. Then since ratio of present age of Chris and Dom is 3:4. Therefore,
...(1)
Now, it is given that in 7 years their age ratio will become 4:5. Therefore,


Using value of C from equation(1),


Thus, present age of Dom is 28 years.
Answer:
I think a is correct answer.
This question is incomplete. The complete question is given below:
Write a program that asks the user to enter ten temperatures and then finds the sum. The input temperatures should allow for decimal values.
Sample Run
Enter Temperature: 27.6
Enter Temperature: 29.5
Enter Temperature: 35
Enter Temperature: 45.5
Enter Temperature: 54
Enter Temperature: 64.4
Enter Temperature: 69
Enter Temperature: 68
Enter Temperature: 61.3
Enter Temperature: 50
Sum = 504.3
Answer:
# Program in Python
sum = 0.0
for i in range(0, 10):
t = float( input("Enter the Temperature: "))
sum = sum + t
print("Sum: {0:0.1f}".format(sum))
Explanation:
- Initialize the sum variable to hold the sum of input temperatures
.
- Iterate from 0 to 9, Get the input and compute the sum
.
- Print the result by formatting the sum so that value is printed with precision to single decimal place
.
Answer:
void showSeatingChart(const string [][COLS], int);
Explanation:
void showSeatingChart(const string [][COLS], int);
The above function showSeatingChart() will display the 2D array of seating chart.
The return type of this function is void because it does not need to retun anything.
The parameter of the function is a 2D array which is seatingChart[ROWS][COLS].
The type of this 2D array is string that means it is a 2D array of string. It will contain string elements.
To declare a prototype of a function, there should be a semi-colon (;) at the end of declaration.
The definition of the function should be given outside main() function and declaration of the function should be above the main() function or at the beginning of the program with declaration of constant variables.