Lab#1Due Date: Monday, September 10, 2018 11:59:00 PMNumber of Submissions: 3For this lab, you will solve two problems that require from you to input some data and do some calculation. The two problems should be solved inside the main function with comments in between.Don’t write two main functions. Please use only one main function, and the answer for the two problems should be inside that single main function.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: Finding the Surface Area of a Cylinder50 pts
Inside the main function, do the following:Write a code-segment that finds the surface area of a cylinder. Your program asks the user to input two values: A height value and a radius value. Your code then finds the surface area of the cylinder and it outputs the result to the screen.The Surface Area is calculated using the following equation 2 × p × r × (r+h),where r is the radius and h is the height. and p is the PI value (use 3.14 for that).

Don't use plagiarized sources. Get Your Custom Essay on
For as low as $13/Page
Order Essay

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
error: Content is protected !!
Live Chat 1 763 309 4299EmailWhatsApp

Order your essay today and save 20% with the discount code WELCOME