Question: can you. please solve this in java prog Chapter 3 Object-Oriented Programming, Part 1: Using Classes- Java Illuminated, 4th Edition YouTube Q-Search Done PREV chapter
can you. please solve this in java prog
Chapter 3 Object-Oriented Programming, Part 1: Using Classes- Java Illuminated, 4th Edition YouTube Q-Search Done PREV chapter 2 Programming Building Blocks-Ju. NEXT Java Illuminated, 4th Edition Chapter 4 Introduction to Applets and Graphi. In this Programming Activity, you will write a short program using some of the classes and methods discussed in this chapter. Your program will perform the following operations 1. a. Prompt the user for his or her first name b. Print a message saying hello to the user c. Tell the user how many characters are in his or her name 2. a. Ask the user for the year of his or her birth b. Calculate and print the age the user will be this year c. Declare a constant for average life expectancy; set its value to 78.7 d. Print a message that tells the user the percentage of his or her expected life lived so far 3. a. Generate a random number between 1 and 20 b. Pop up a dialog box telling the user that the program is thinking of a number between 1 and 20 and Ce ask for a guess c. Pop up a dialog box telling the user the number and how far away from the number the user's guess was Find answers on the fly, or master something new. Subscribe today. See pricing options
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
