Answer:
// Program is written in C++ Programming Language
// Comments are used for explanatory purpose
#include<iostream>
using namespace std;
int main ()
{
// Variable declaration
string name;
int numQuestions;
int numCorrect;
double percentage;
//Prompt to enter student's first and last name
cout<<"Enter student's first and last name";
cin>>name; // this line accepts input for variable name
cout<<"Number of question on test"; //Prompt to enter number of questions on test
cin>> numQuestions; //This line accepts Input for Variable numQuestions
cout<<"Number of answers student got correct: "; // Prompt to enter number of correct answers
cin>>numCorrect; //Enter number of correct answers
percentage = numCorrect * 100 / numQuestions; // calculate percentage
cout<<name<<" "<<percentage<<"%"; // print
return 0;
}
Explanation:
The code above calculates the percentage of a student's score in a certain test.
The code is extracted from the Question and completed after extraction.
It's written in C++ programming language
Answer:
Kindly check Explanation section.
Explanation:
NB: please check the attachment for the solution to: the boundary layer thickness, the displacement thickness, the momentum thickness the wall shear stress, the friction coefficient, and the drag coefficient for a flat plate with zero pressure gradient in a laminar flow.
===============================
So,for the solution the second part of the question that asked us to state;
What happens if we add a constant positive pressure gradient?
SOLUTION: Whenever we have dp/dx > 0 that is a positive pressure gradient then, we are going to have what is known as a divergent flow which makes pressure to increase in the direction of flow. The pressure will be minimum around the centre. Also, as the velocity decreases(velocity gradient becomes negative), the area of flow increases.
You have to go back and forth to sleep in a few hours