Is this some jiberish or is this a different language because I can’t understand nothing you just typed
After you declare a variable, you can assign a value to a variable. Assigning a value to a variable means storing a value to a variable. To assign a value, use the equal sign: var age; ... In this one line above, we declare a variable called age when we assign the value 55.
Answer:
See Explaination
Explanation:
/ Header files section
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
#include <cmath>
using namespace std;
// start main function
int main()
{
// variables declaration
string fileName;
string lastName;
double score;
double total;
double grade;
string description;
// prompt the user to enter the input file name
cout << "Enter the input file name: ";
cin >> fileName;
// open the input file
ifstream infile;
infile.open(fileName);
// exit from the program if the input file does not open
if (!infile)
{
cout << fileName << " file cannot be opened!" << endl;
exit(1);
}
// repeat the loop for all students in the file
infile >> lastName;
while (infile)
{
infile >> score;
infile >> total;
// compute the grade
grade = score / total * 100;
// find the grade's description
if (grade > 90)
description = "Excellent";
else if (grade > 80)
description = "Well Done";
else if (grade > 70)
description = "Good";
else if (grade >= 60)
description = "Need Improvement";
else
description = "Fail";
// display the result of each student
cout << lastName << " " << setprecision(0) << fixed << round(grade) << "% " << setprecision(5) << fixed << (grade * 0.01) << " " << description << endl;;
infile >> lastName;
}
// close the input file
infile.close();
system("pause");
return 0;
} // end of main function
Answer:
F
=
9
5
C
+
32
Subtract 32 from both sides:
F
−
32
=
9
5
C
Multiply both sides by 5:
5
(
F
−
32
)
=
9
C
Divide both sides by 9:
5
9
(
F
−
32
)
=
C
or
C
=
5
9
(
F
−
32
)
Explanation:
Division in Java will return the integer value and disregard the remainder. This line of code will return 4.
:)