Create a custom python module named tempconvert
Course:- DOT NET Programming
Reference No.:- EM131293308

Assignment Help
Expertsmind Rated 4.9 / 5 based on 47215 reviews.
Review Site
Assignment Help >> DOT NET Programming

- Write all lines of your pseudocode as comments immediately after your name and SPC ID# comment.
- Add more comments as needed in each program to explain what your code is doing.
- Choose descriptive variable names in all programs.
- Before submitting this assignment,

1. Write a program named program51.py that defines a value-returning function named cuber that returns both the surface area and volume of a cube. A cube is a rectangular prism with all sides equal. Prompt the user to enter the cube's side length from the keyboard in the main function and then call the cuber function. The main function should "catch" the values returned by cuber and display both the surface area and volume accurate to three decimal places.
Enter side length of cube 2.5
Surface area is 37.500
Volume is 15.625

2. Write a program named program52.py that uses main and a void function named numbers that takes no arguments and does not return anything. The numbers function generates 5 random integers, each greater than 10 and less than 30 (duplicates are okay), and prints them all on one line separated by spaces. A loop is required for this, and the loop should also total up the integers so the sum can be displayed when the loop ends. The main function should call the numbers function.
12 24 16 21 17
The total is 90

3. Create a custom Python module named tempconvert.py. This module must contain two functions: one that converts from Celsius to Fahrenheit and one that converts from Fahrenheit to Celsius. Write a program named program53.py that imports the tempconvert module. The program should prompt the user to specify the temperature and the scale, and then perform the appropriate conversion accurate to two decimal places.
Enter the temperature to convert 37
Was that input Celsius or Fahrenheit?
Enter C or F C
In Fahrenheit, that is 98.60
Enter the temperature to convert -40
Was that input Celsius or Fahrenheit?
Enter C or F F
In Celsius, that is -40.00

Python coding is not required in this module. Your first objective in this lesson is to understand binary numbers and hexadecimal numbers. Then, you must learn how to quickly and accurately convert between decimal numbers, binary numbers, and hexadecimal numbers. All computer professionals need these skills. If the many tools below don't give you these skills, you can find many other excellent resources online.

- Work through the "Materials" below.
- When you are sure you have mastered the six conversions below, try Quiz 3 - Number Systems. It's at the bottom of this page.

- 1 question converting from binary to decimal
- 1 question converting from decimal to binary
- 1 question converting from binary to hexadecimal
- 1 question converting from hexadecimal to binary
- 1 question converting from decimal to hexadecimal
- 1 question converting from hexadecimal to decimal

You must provide a solution, not merely an answer. Use each question's message box to explain how you arrived at your answer. Here is an example:

Question: Convert hexadecimal 4C to decimal.

Put your comment

Ask Question & Get Answers from Experts
Browse some more (DOT NET Programming) Materials
Create account management with java gui using a MVC model.create withdraw, create account, deposit , trasfer ,balance , on the main fram. and On pressing one of these button
a. Create a console-based application named Multiplication whose main() method asks the user to input and then calls a method named MultiplicationTable(), which displays the r
Develop an ASP.NET web page that will allow the students to submit information about themselves, and the courses that they are taking on-line. The information will be stored
Create a GPA calculator that Ask the user to input a list of classes and the number of tests per class. Once the user has entered this initial information, allow the list to b
Design a Windows based application that should read or extract data from an outside source (preferably from other Microcontroller). Carry on a particular computation on the
System must ensure the password must be at least 9 characters but no more than 18 characters long. Password must contain some upper case and lower characters, some digits,
Calculate and display average grade for the class. Clearly identify which methods you choose to include in the project (filling arrays from textboxes, populating the Listbox
Determine the price of the shirts from the radio buttons and check boxes for the monogram and pockets. Multiply the quantity by the price to determine the extended price, an