Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Problem Remember this one from our Just Enough Programming Logic and Design Chapter1? Create the logic for a Mad Lib program that displays a

Java Problem

image text in transcribed

image text in transcribed

Remember this one from our Just Enough Programming Logic and Design Chapter1? Create the logic for a Mad Lib program that displays a message asking the user to provide five words, and then accepts those words to create and display a short story or nursery rhyme that uses them. Back then, we developed the following pseudocode to accomplish this logic start oulpul'Please enter a noun" input wordl output "Please enter a noun.. input word2 oulpul'Please enter a past-tense verb" input word3 output Please enter a noun" input word4 outpul "Please enter an-ing verb input word5 output Tack and Jill went up the wordl to fetch a pail of word2. Jack word3 down and brokc his word4, and Jll ca word5 aller stop Now lct's turn this pscudocodc into a real program using the Java language! In completing this project, you will use these elements from Java Chapter 1 Siructure of a Java program * You will code the statements that define a class (the public class header and the curly brackets that mark the beginning and end of the class) o " Your class header wil look exactly like what we had on our Java Ch l slides, though you should give your class a name that better reflects what you are doing in this project (better than MyFirstJavaProgram) You will code the statements that define your main method (the method header and the curly brackets that mark the beginning and end of the method) o Your main method header will look exacily like what we had on our Java Chl slides (i.e., it will be public, static, void, and have the String arg) - . End your Java statements (but not class and method headers) with a semi-colon . Use the System.out.println(0 pre-written method to send output to the user . Use the Java compile and run proces:s

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_2

Step: 3

blur-text-image_3

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago