Answer:
I believe you are referring to the <u>Eyepeice.</u>
Explanation:
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
a.tasks
b.stability
Sharing a workbook helps to complete (A, tasks) on time. Multiple people acssessing the workbook help to build (B, stability)
Answer:
<em>The function is written in C++:</em>
void madLib(string adjective,string noun1,string adverb,string verb,string noun2){
cout<<"The "+verb+" "+noun1+" "+adjective+" "+noun2+" the "+adverb;
}
Explanation:
This line defines the function
void madLib(string adjective,string noun1,string adverb,string verb,string noun2){
This line generates and returns the output string
cout<<"The "+verb+" "+noun1+" "+adjective+" "+noun2+" the "+adverb;
<em>NB: I've added the full source code as an attachment where you can test various input strings</em>
Answer:
It is an example of a spreadsheet application