Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Question 2 - Why my assignment is late (3 pts) Write a Java program that helps a student write the text to an email

JAVA image text in transcribed
image text in transcribed
Question 2 - Why my assignment is late (3 pts) Write a Java program that helps a student write the text to an email explaining to their professor why their assignment is late Your program should prompt the user to enter the following information. Note: String inputs are to be one word and the number input is to be stored in a variable of type double The first or last name of your instructor Your name A food A number between 37.0 and 40.0 "I couldn't do my homework because my computer has a virus and so do all my pencils and pens." An adjective A color An animal After the strings and double are input, they should be substituted into the story below and output as an email to your prof using a single System.out.println() statement to the console (See sample output in figure 1) Dear professor [Instructor name] I am sorry that I am unable to turn in my computer assignment at this time. First, I ate a rotten [food], which made me turn [colour] and extremely ill. I came down with a fever of [fever]. Next my [adjective] pet [animal] must have smelled the remains of the [food] on my USB key (which is where my program was stored) because he ate it. I am currently rewriting my programs and hope you will accept my assignment late. Sincerely, [student name] Here is a sample output screen. User input is marked by

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions