Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Java and Pseudo-code needed not python Design a program using pseudo-code which prompts a user for their first name, followed by their last name; then

Java and Pseudo-code needed not python

Design a program using pseudo-code which prompts a user for their first name, followed by their last name; then displays a "Hello" salutation which concatenates their first name with their last name. Sample output (user input shown in red):

Please enter your first name: John Please enter your last name: Smith Hello, John Smith!

Your program must include a main module and one additional module; this function prompts the user for either their first name or last name. Your main module should call the function twice, once to obtain and return the first name, and a second time to obtain and return the last name. Both the first and last name input should be returned to the main function and assigned to variables.

The main module then constructs and displays the salutation using the first and last name strings returned by the module and assigned to variables in the main module. Your salutation should include the word Hello, followed by a comma, followed by the user's first name, a space, the user's last name, and an exclamation point as shown in the Sample Output above.

Your program must conform to the course programming assignment rubric, including the use of correct and consistent indentation and alignment, meaningful variable names, named constants, descriptive comments, and headers for your modules.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions