subject

Write a program that checks how long a name is. The program should take a name as input from the user. If the name has 3 or fewer letters, your program should work like this:

Enter your name: Lin
Hi Lin, you have a short name.
​
If the name has between 4 and 8 letters (inclusive), your program should work like this:

Enter your name: Jimmy
Hi Jimmy, nice to meet you.
​
Otherwise, if the name has more than 8 letters, your program should work like this:

Enter your name: Yaasmeena
Hi Yaasmeena, you have a long name.
​

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:30
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr.nextdouble(); minutestraveled = scnr.nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system.out.println("miles: " + milestraveled); } }
Answers: 2
question
Computers and Technology, 22.06.2019 23:00
In which part of a professional email should you try to be brief, but highly descriptive?
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
You know the right answer?
Write a program that checks how long a name is. The program should take a name as input from the use...
Questions
question
Mathematics, 26.09.2021 01:40
question
Mathematics, 26.09.2021 01:40
Questions on the website: 13722361