Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is on Phython. Please explain what I am typing wrong in the text to recieve this error. Also, please provide pictures of what input

This is on Phython. Please explain what I am typing wrong in the text to recieve this error. Also, please provide pictures of what input is supposed to look like. Thanks! image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Please enter your f trst nane:Tyler Please enter a length expressed in feet:12.22 Traceback (bost recent call last): tength feet ff loat ( inputi - Please enter a tength expresse d in fect:12.22*)) valueerrort could not convert string to float: first nane = input\} P please enter your first nage:Tylen' ) I I length feet=floats inputc-Please entee a length expressed in feet: 12.224) ) length,yards - tength feetrs print( "HiW, frrst nane 1(7) printcon.2f tret are equal to S.2f yards wi length feet. tength yards)) Problem: You are asked to write a program to receive a length expressed in feet, convert it to yards, and show the result on the screen. The formula for converting a length expressed in feet to yards is: Your solution must ask the user to enter the length in feet at the keyboard and then calculate and display the resulting length in yards. You must ask for and display the first name of the person using your program too. Your task: implement in Python the algorithm solution shown below. Algorithm solution (in pseudocode): To solve this problem your program must perform the following tasks: Prompt the user to enter his/her first name. Get the name and store it in the corresponding variable. Prompt the user to enter the length in feet. Get the length from the keyboard and store it in the corresponding variable. Calculate the length in yards using the formula exactly as provided above and assign the result to the corresponding variable. Display on the screen the following message: "Hi", user_name length_feet, "feet are equal to ", length yards, "yards" Note: Work with real numbers. The program must be free of errors. Start working on it as soon as possible discuss with your teammate your solutions in order to submit the best of both them. I am showing sample runs of my solution for your reference. Please run your program and ensure that it works like mine. The input and output formatting must be like the one used in my sample solution (real numbers must be displayed with 2 decimal digits in the output). IMPORTANT: this lab requires you to use the tools taught so far so review your class notes and go over the online tutorial. Look at the examples used in my lectures. All assignments assigned throughout the semester will require you to use the concepts learned in lectures. Thus, get used to read the online tutorial, slides, and class notes and to review my program examples before the labs in order to be well prepared to complete the assignments on time. If you have concerns or specific questions, post them on the Discussion Board of Blackboard. CSCl1380 Spring 2023 Your program must have the following comments at the top. Don't forget to include them because they will count toward the grade of this lab. When done, submit your solution through Blackboard using the link corresponding to this assignment. Do Not email it. Include the link to your Repl.it solution in the Comments box. The following is the basic criteria to be used to grade your submission: You start with 100 points and then lose points as you don't do something that is required. -5: No comments or too few comments in source code; -5: Wrong output format (missing blank lines); -10: Program does not implement the algorithm provided; Important: more points may be lost for other reasons not specified here. Sample runs of my program Please enter your name: Cindy Please enter a length expressed in feet: 11.2 Hi Cindy :-)

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

Students also viewed these Databases questions