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:
public static int average(int j, int k) {
return (int)(( (long)(i) + (long)(j) ) /2 );
}
Explanation:
The above code returns the average of two integer variables
Line 1 of the code declares a method along with 2 variables
Method declared: average of integer data type
Variables: j and k of type integer, respectively
Line 2 calculates the average of the two variables and returns the value of the average.
The first of two integers to average is j
The second of two integers to average is k
The last parameter ensures average using (j+k)/2
Answer:
In 2019, the average term length was 69 months for new cars and 65 months for used vehicles. Most car loans are available in 12 month increments, lasting between two and eight years. The most common loan terms are 24, 36, 48, 60, 72, and 84 months, according to Autotrader
Explanation:
Answer:0.2A
Explanation:
First, write KCL
i1-i2-i3=0
Then, replace currents with viltages and resistors.
V2-10v/100-v2/200-v2/400=0
V2-40=0
V2=40v
I hope it was helpful
Answer:
gauge pressure is 133 kPa
Explanation:
given data
initial temperature T1 = 27°C = 300 K
gauge pressure = 300 kPa = 300 × 10³ Pa
atmospheric pressure = 1 atm
final temperature T2 = 77°C = 350 K
to find out
final pressure
solution
we know that gauge pressure is = absolute pressure - atmospheric pressure so
P (gauge ) = 300 × 10³ Pa - 1 ×
Pa
P (gauge ) = 2 ×
Pa
so from idea gas equation
................1
so
P2 = 2.33 ×
Pa
so gauge pressure = absolute pressure - atmospheric pressure
gauge pressure = 2.33 ×
- 1.0 ×
gauge pressure = 1.33 ×
Pa
so gauge pressure is 133 kPa