![LittleNerd2852](/avatars/36013.jpg)
LittleNerd2852
18.01.2020 •
Computers and Technology
Write an if-else statement that displays 'speed is normal' if the speed variable is within the range of 24 to 56. if the speed variable’s value is outside this range, display 'speed is abnormal'.
Solved
Show answers
More tips
- F Food and Cooking Аэрогриль: Все, что нужно знать для подготовки здоровой и вкусной пищи...
- G Goods and services How to choose a washing machine?...
- F Family and Home Is it Worth Knowing the Gender of Your Child Before Birth?...
- H Health and Medicine Mercury Thermometer Danger: What to do when a thermometer breaks?...
- F Food and Cooking How to cook crayfish? Everything you need to know...
- G Goods and services LED-подсветка в LCD-телевизорах: 5 причин, почему она лучше других технологий...
- P Photography and Videography Understanding HDR: How It Works and Why You Need It...
- G Goods and services Which TV is better - LCD or Plasma?...
- S Sport How to Learn to Pull Up on Monkey Bars?...
- L Leisure and Entertainment Scrapbooking: What is it and Why is it Becoming More Popular?...
Answers on questions: Computers and Technology
- C Computers and Technology Identify the HTML tags. 7. It is used to define different levels of headings.2. It is used to mark the beginning of a new paragraph,3. It is used to give a line...
- H History Commanding union general during american civil war. rutherford b hayes grover cleveland ulysses s grant andrew johnson...
- H Health Would u rather.. be with the one u love but with no money or be heartbroken to have all the money in the world answer truthfully...
- M Mathematics the population of a colony grows from 250 in the year 2000 to 400 in the year 2004. what is the average rate of change of population....
Ответ:
import java.util.Scanner;
public class Speed{
int speed;
public Speed(int speed){
this.speed = speed;
}
public void checkSpeed(){
if(speed >= 24 || speed <= 56){
System.out.println("Speed is normal");
}
else
System.out.println("Speed is abnormal");
}
public static void main(String...args){
Scanner input = new Scanner(System.in);
int userSpeed = 0;
System.out.println("Enter a speed: ");
userSpeed = input.nextInt();
Speed obj1 = new Speed(userSpeed)
obj1.checkSpeed();
}
Explanation:
Ответ:
In “Rip Van Winkle” by Washington Irving, we meet a character who does not respond too much of anything in his life but only reacts. While Rip is a harmless and easy going person, he is also self-centered, lacks initiative, is incurious, and therefore is not a heroic character.