10 Jul For this lab, you have to solve four required problems. So
For this lab, you have to solve four required problems. Some problem requires from you to input some data and do some calculation. There is a bonus problem (the last one). It is optional Each problem should be solved inside its own main function with comments in between. Think about the possible data types for each data in every problem. Choose names for your variables that make sense, don’t use any variable name that is one character only. Use good, multi-character, meaningful identifiers (variables) names. There is a 5% penalty for not doing that. Document your work by putting comments at the top of your program. The possible comments that you need for this program are the program prolog (name of the programmer, your class and section, the date when you finished working on the program and the purpose of the program). There is a 5% penalty for not doing that. In addition to that, you have to write some comments between the lines of the code to show why you write your code this way. Remember that comments in Python are either: Starts with // in case the comment is one line only. Or it is between /* */ if the comment is taking more than one line. Problem 1: Lake LengthTo approximate the length of a lake, a surveyor starts at one end of the lake and walks 245 yards. He then turns 110º and walks 270 yards until he arrives at the other end of the lake. Approximately how long is the lake?———————————–Problem 2: President AgeAsk the user to input his/her age. The check if the user’s age makes him/her eligible to be a president of the United State of America. As specified in the U.S. Constitution, a person must be aged 35 or over to be a president————————————Problem 3: Profit vs. LostWrite a program that asks the user to input a product cost price and its selling price (two inputs). Then check if the seller makes a profit or loss from that product, in addition, to calculate the total profit or total loss rounded to 2 decimals digits.———————————————————-Problem 4: Circles OverlapWrite a program to determine whether or not two circles touch each other, overlap with each other, or not overlap with each other. your program should work like the following Ask the user to input the X-coordinate of the center of the first circle. Ask the user to input the Y-coordinate of the center of the first circle. Ask the user to input the radius of the first circle. Ask the user to input the X-coordinate of the center of the second circle. Ask the user to input the Y-coordinate of the center of the second circle. Ask the user to input the radius of the second circleBased on these inputs, can you determine if the two circles are : Touch each other, Overlap with each other Not overlap with each otherShow a proper message for each case.Test Your program using these 3 cases:Case #1 :Input:34514188Output : Circles do not touch each other.Case #2 :Input:2312152820Output : Circles intersect with each other.Case #3 :Input:-1083014-2410Output : Circle touch each other.————————————–Problem 5: Basketball PlayersTwo players stand on a basketball court. The angles of elevation from the foot of each player to the basket (which is 10′ high) are 40 and 50 degrees. How far apart are the players from each other? Check the following diagram.
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
