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:
Just answered this to confirm my profile.
Explanation:
I dont have a clue, this is just to confirm my profile.
Thank you so much!! You too!
Answer: Partial pressures are 0.6 MPa for nitrogen gas and 0.4 MPa for carbon dioxide.
Explanation: <u>Dalton's</u> <u>Law</u> <u>of</u> <u>Partial</u> <u>Pressure</u> states when there is a mixture of gases the total pressure is the sum of the pressure of each individual gas:

The proportion of each individual gas in the total pressure is expressed in terms of <u>mole</u> <u>fraction</u>:
= moles of a gas / total number moles of gas
The rigid tank has total pressure of 1MPa.
molar mass = 14g/mol
mass in the tank = 2000g
number of moles in the tank:
= 142.85mols
molar mass = 44g/mol
mass in the tank = 4000g
number of moles in the tank:
= 90.91mols
Total number of moles: 142.85 + 90.91 = 233.76 mols
To calculate partial pressure:

For Nitrogen gas:

= 0.6
For Carbon Dioxide:



0.4
Partial pressures for N₂ and CO₂ in a rigid tank are 0.6MPa and 0.4MPa, respectively.