Question
: Write a Kotlin program which will prompt the user for 5 different items: Name Date Assignment Class Number Description Store each piece of information
:
Write a Kotlin program which will prompt the user for 5 different items:
Name
Date
Assignment
Class Number
Description
Store each piece of information in a separate variable. Use this information to print out a formatted Header Comment using the information from the user. The header comment should look EXACTLY like the following, down to spacing, alignment, and number of *s.
You MUST use the variables that you stored the user's input to print out the report at the end of your program.
This header output should then be copied and inserted into the top of your program for this and all future assignments.
HINT: There are 60 * symbols on the top and bottom lines
Program Output should look like this EXACTLY, with the users input replacing the fields appropriately and everything aligned appropriately.
/************************************************************ * Name: Dave Jones * Date: 2/2/2020 * Assignment: Headers * Class Number: 282 * Description: Print out a header to put on each program ***********************************************************/
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started