Question: Part 1 : Write a program that consists of the following steps: - Create a constant named MAX and set it to 4 5 .
Part :
Write a program that consists of the following steps:
Create a constant named MAX and set it to
Prompt and read in the users name. The user can enter their name in any combination of upper and lower case.
Ask the user for the number of previous programming classes theyve taken, and read in the data as a number what
data type should it be
Ask the user for their goal when taking the CIS A class. The user can enter upper or lower case letters.
Print a blank line.
Print the users name in a box, which is created in the following steps:
o A line of MAX number of asterisks Dont hard code here, when I test your code I could change MAX to
a different value and the code should still print MAX number of asterisks.
o A line with at the beginning and end, and an appropriate number of spaces in between.
o A line with at the beginning and end, and the users name centered within the s
The users first and last names should have the first letter in uppercase, and all other letters in lowercase.
o A line with at the beginning and end, and an appropriate number of spaces in between.
o A line of MAX number of s
See the sample output for the box format.
Print the number of previous programming classes that the user has taken, with explanation text. See the sample
output.
Print a header line of text, then print the users goal for taking CIS A on a second line. The users goal should be in
all uppercase.
Your program should not have to use any if statement or loop or relational operators etc.
Part :
Run your program, enter your name, the number of programming classes that youve taken before this CIS A class,
and your goal in taking this class. Id like to get to know you better.
Copy and paste your program output to the end of the labpy file, and put all lines of output in a comment block.
Part :
Run your program again, this time enter your name with one less character or one more character. You can either delete
the space between your first and last names, or add an extra space in between them. This is a test to see that your code
can print both an even and odd length for the name in the center of the box. When the name cannot be exactly in the
center, either one character off in front or in back is fine.
Hint: Dont forget that you cant use if statement or relational operators to compare. Instead, use arithmetic to
calculate how many spaces to print before and after the name.
Copy and paste your program output to the end of the labpy file, and put all lines of output in a comment block.
Sample output on the next page.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
