You would set it up as .2 x 26, which would be 5.2
In the first box is 2.
second box 1.
third 4.
fourth 5.
fifth 3.
First, we can start off with a fraction:
9/36 = 1/4
Now that we have this fraction, we multiply by 25:
25/100
This can be changed into a percent:
25%
100 - 25 = 75
25% is alcohol and 75% is water
It takes value from a user and then user the operation of (+,-,*/).
i used c++ programming language to solve this program:
#include<iostream>
using namespace std;
int main() {
int var1, var2;
char operation;
cout << "Enter the first number : ";
cin >> var1;
cout << endl;
cout <<"Enter the operation to be perfomed : ";
cin >> operation;
cout << endl;
cout << "Enter the second nuber : ";
cin >> var2;
cout << endl;
bool right_input = false;
if (operation == '+') {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 + var2);
right_input = true;
}
if (operation == '-') {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 - var2);
right_input = true;
}
if (operation == '*') {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 * var2);
right_input = true;
}
if (operation == '/' && var2 != 0) {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 - var2);
right_input = true;
}
if (operation == '/' && var2 == 0) {
cout << "Error. Division by zero.";
right_input = true;
}
if (!right_input) {
cout << var1 << " " << operation << " " << var2 << " = " << "Error;";
cout << "Invalid Operation!";
}
cout << endl;
system("pause");
return 0;
}
The tenths place would be the digit right after the decimal point, and we want to round 479.16 to the nearest tenths.
The number in the tenths place is 1. Now we have to decide if we're going to round up or down
- If the next digit is greater than or equal to 5, we round up (add 1 to the digit); if it isn't, then we round down (the digit stays the same).
The digit after the tenths place is "6", which is greater than 5. Thus, the "1" is rounded up to a "2"
Answer: 479.16 to the nearest tenths is 479.2.
Let me know if you need any clarifications, thanks!
~ Padoru