Question: Could I get some help with thispython code? Thanks in advance! Write a program that does the following: 1. Prompt the user to enter in

Write a program that does the following: 1. Prompt the user toCould I get some help with thispython code? Thanks in advance!

Write a program that does the following: 1. Prompt the user to enter in file size in Kilobytes (KB) 2. Convert the supplied input into bits, bytes, megabytes and gigabytes. You can use the following conversion values: 8 bits = 1 byte 1024 bytes = 1 kilobyte (KB) 1024 kilobytes = 1 megabyte (MB) 1024 megabytes = 1 gigabyte (GB) 3. Output your results as follows. Your converted values should line up in a column (right-justified) followed by the units of measurement (left justified). Format your converted values to two decimal places, and add comma separators as necessary. Enter a file size, in kilobytes (KB): 20000 20000 KB ... ... in bits ... in bytes ... in megabytes 163,840,000.00 bits 20,480,000.00 bytes 19.53 MB in gigabytes 0.02 GB 4. Comment your source code and describe your code to someone who may be viewing it for the first time. Also include your name, the date, your class section and the name of your program at the top of your file. 5. You may assume that your user gives you a reasonable number to work with. Use the format() function to line up the results neatly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!