Question: What am I doing wrong to get the error, and how to finish the rest of the assignment? Problem: You are asked to write a



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 :-) Please enter your first name:Tyler Please input the length in feet:45.6 Traceback (most recent call tast) f File "moin.py*, tine 7 , in enodules feet = ftoati input( "Please input the tength in feet:45, 6*i) ) valueError: could not convert string to floati 'i user nane = inpat ( Pplease enter your furst none:(yler ) feet = float input( Please input the length in feet 45.6\%) yards =1/3 i feet prins( 2 in H(P, user nane) prunt(f "\{teett.2f, }, "feet are equal to", f" (yords f.2f)", "yards")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
