Answer:
Charles Babbage, an English mechanical engineer and polymath, originated the concept of a programmable computer. He is considered the "father of the computer". He invented the first mechanical computer in the early 19th century.
Explanation:
plz make me as a brainliest frd
The AUTO FORMATTING ONLY is an auto fill option that fills the destination area using the format of the source area; no content is filled. This is opposite from auto without formatting on which it fills the destination area without formatting.
Answer: it is Forza Horizon 4. ...
Best Car Games
1.Forza Horizon 4
2. Grand Theft Auto V
3. Need For Speed Payback
4. Car Mechanic Simulator
5. Forza Horizon 4
6. Rocket League
Explanation:
import java.util.Scanner;
public class U3_L6_Activity_Two{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = scan.nextInt();
if(x>=4|| ((y < 5) && ((x+y) < 7))){
System.out.println("pass");
}
}
}
I'm pretty sure this is what you're looking for. Best of luck.
Answer:
The solution code is written in Python 3:
- calories = int(input("Enter number of calories: "))
- fats = int(input("Enter number of fat in grams: "))
-
- if(calories > 0 and fats > 0):
- cf = fats * 9
- if(cf < calories):
- percent = cf / calories
- if(percent < 0.3):
- print("Food is low in fat")
- else:
- print("Error input. Calories from fat cannot more than total calories")
- else:
- print("Error input. Calories and fats must be more than 0")
Explanation:
Firstly, use input function to ask user to enter total number of calories and fat in grams (Line 1-2)
Next we do the first input validation to check if the calories and fats are more than 0 (Line 4). If so apply formula to calculate calories from fats. If not, print error input message (Line 5, 13)
Then we proceed to next input validation to check if calories from fact more than total calories. If so, proceed to calculate percentage of calories from fats and if it is lower than 30%, display the appropriate message (Line 6 - 9). If fail the second input validation, the program will display another error input message again (Line 11)