Aerospace, petroleum, and automotive industries
Answer:
#include <iostream>
#include <vector>
using namespace std;
void calGPA();
vector<int> g;
vector<int> h;
int main(){
char pushMore = 'y';
int fg, fh;
for (;;){
if (pushMore == 'n'){
break;
} else{
cout<< "Enter integer for grade: ";
cin>> fg;
cout<< "Enter integer for credit hours: ";
cin>> fh;
g.push_back(fg);
h.push_back(fh);
cout<< "Do you want to add more grade and credit hours? y/n: ";
cin>> pushMore;
}
}
calGPA();
}
void calGPA(){
double total = 0, GPA;
for (int i = 0; i < g.size(); ++i) {
total += g.at(i) * h.at(i) ;
}
cout<< "The GPA is : "<< total/g.size();
}
Explanation:
The C++ source code above defines two vectors 'g' and 'h'. The latter holds the grades of a student while the former holds the credit hours for the subject taken. The void 'calGPA' function calculates and prints the student's GPA.
Answer: Clients
Explanation:
A Client refers to a computer that is able to connect to a server usually in a network in order to access the services provided by that server.
When a user tries to access the internet, the Client accesses the relevant server and requests the information that the user is requesting. The server then sends this to the client which then formats it in the way that the user can understand. The client is thus the direct connection to the internet.
To put a number in scientific notation, you must simplify it to become a number between 1-10 and multiply it by 10 up to the number of spaces the decimal was moved to simplify the number.
For example, to put the number .000000000006789 in scientific notation, you must move the decimal 12 times ( I think) to make the number 6.789 x -10up to the 12, be cause you have to move the decimal backwards.
To do another, 0.1 in scientific notation becomes 1 x 10up to the 1.
4 doesn't need to be in scientific notation, as it is already a number between 1-10. However, if you were to do it, it would become 4 x 10up to the 0.
For one more example, 78000000000000000 in scientific notation becomes 7.8 x 10up to the 15.
And so on for the rest. I hope this helps!