Answer:
Explanation:
Answer: With crumple zones at the front and back of most cars, they absorb much of the energy (and force) in a crash by folding in on itself much like an accordion. ... As Newton's second law explains force = Mass x Acceleration this delay reduces the force that drivers and passengers feel in a crash.Sep 30, 2020
Answer:
η=0.568
Explanation:
At inlet condition
temperature = 30 C and pressure P=1 bar
The maximum temperature = 13456 C
Compression ratio r= 12
We know that for process 1-2



Now for process 2-3



So the cut off ratio ρ=1.97
Efficiency of diesel engine

Now put the values

⇒η=0.568
So the efficiency is 56.8%.
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:
7 available
Explanation:
Since 3 colors are available r = 3
Total combination = 35
nCr = 35 ---1
nCr = n!/(n-r)!r!---2
We put equation 1 and 2 together
n-1)(n-2)(n-3)!/n-3)! = 35x 3!
We cancel out (n-3)!
(n-1)(n-2) = 210
7x6x5 = 210
nC3 = 35
7C3 = 35
So If there are 35 combinations, 7 colors are available.
Thank you!
Answer:
- import java.util.Scanner;
- public class TryToParseDouble {
-
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- double num;
-
- try{
- System.out.print("Input a number: ");
- num = Double.parseDouble(input.nextLine());
-
- }catch(NumberFormatException e){
- num = 0;
- System.out.println("Invalid input! It should be a number in double type");
- }
- System.out.println(num);
- }
- }
Explanation:
Firstly, create a Scanner object to get user input (Line 5).
Next, create a try block and prompt user to input a number and use Double.parseDouble() method to convert the input to double type in the block (Line 8-10).
Next, create a catch block to catch a NumberFormatException. In the Catch block, set the num to zero and then print out a message to inform user about the invalid input (Line 12-14).
Lastly, display the number (Line 16).