Answer:
hello your question is incomplete attached below is the complete question
A) optimum compressor ratio = 9.144
B) specific thrust = 2.155 N.s /kg
C) Thrust specific fuel consumption = 1670.4 kg/N.h
Explanation:
Given data :
Mo = 2.1 , To = 220k , Tt4 = 1700 k, hpr = 42000 kj/kg, Cp = 1.004 kj/ kg.k
γ = 1.4
attached below is the detailed solution
Answer:
import java.util.Scanner;
public class FindMatchValue {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
final int NUM_VALS = 4;
int[] userValues = new int[NUM_VALS];
int i;
int matchValue;
int numMatches = -99; // Assign numMatches with 0 before your for loop
matchValue = scnr.nextInt();
for (i = 0; i < userValues.length; ++i) {
userValues[i] = scnr.nextInt();
}
/* Your solution goes here */
numMatches = 0;
for (i = 0; i < userValues.length; ++i) {
if(userValues[i] == matchValue) {
numMatches++;
}
}
System.out.println("matchValue: " + matchValue + ", numMatches: " + numMatches);
}
}
Answer:
use this, it should help you understand
Explanation:
https://www.electronics-tutorials.ws/logic/logic_5.html
Answer:
#include <iostream>//including iostream library to use functions such as cout and cin
using namespace std;
int main() {
int userInput = 0;
do
{
cout << "Enter a number < 100: " ;
cin >> userInput;
if (userInput < 100)//condition if number is less than 100
{
cout << "Your number < 100 is: " << userInput << endl;
}
} while (userInput > 100);//do while loop condition
return 0;
}
Explanation:
A do-while loop executes regardless in the first iteration. Once it has run through the first iteration, it checks if the condition is being met. If, the condition is TRUE, the loop begins the second iteration. If FALSE, the loop exits. In this case, the condition is the userInput. after the first iteration, lets say the userInput is 120, the condition userInput > 100 is true.Therefore, the loop will run again until eventually the number is less than hundred, lets say 25. In that case the condition would be 25 > 100, which would be false, so the loops will break.