Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project 1 Hello World 2 5 points possible Project Requirements Name of program file: hello _ world.py Description of program: This program will test your

Project 1 Hello World 25 points possible
Project Requirements
Name of program file: hello_world.py
Description of program: This program will test your knowledge of concepts from week 1. This
includes working with strings, numbers, and comments. You will also need
to use the input function and work with simple while loops and try except
concepts.
Program Requirements: The program MUST follow the input, process, output model
described in the syllabus video and the introduction to
programming pdf. You MUST follow the structure outlined
or you will lose points.
This program will need the import statements for username
and todays date.
This program must have a flower box comment section with
your name, date created, and description of the program
(FYI: Not My Description from Above)
Input section:
This program will ask for user input for a name (string)
and a Fahrenheit number (float) for Celsius conversion.
Process section:
Name processing:
You must create and assign variables for the name holding
upper, lower and title cases.
You must create and assign a variable for the length of
the name variable.
Use indexing to create the following slices of name:
1. First character
2. Last character
3. Second to last character of the string
You must create a message variable and assign it with text
created with an f string function.
You must create and assign a message variable and assign
it with text created using concatenation.
Both messages should display the word Hello then the
name in proper case followed by your name is followed by
length variable and finally characters long!
The output should look like:
Hello Dale, your name is 4 characters long!
You must create and assign a variable for the
multiplication of the name variable of 10x.
Fahrenheit processing:
You must create and assign a variable for the Celsius
integer calculation
You must create and assign a variable for the Celsius
float calculation
Output section:
You must then output all variables and some variable types
in this order:
Username
Todays Date
Name entered by user
Type of variable that name is
The 3 case variables, upper, lower, title (proper case)
The length of the name variable
The first initial of name
The last character of name
Second to last character of the string
The f string message
The concatenated message
Name *10
The Celsius float variable followed by its type
The Celsius integer variable followed by its type
What to turn in: Take a screen shot of your RUNNING program
Upload the screen shot and the py file to blackboard as
TWO separate files.
Assignment Template

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

What factors in Nooyis Five C model facilitate employee trust?

Answered: 1 week ago