Create a custom python module named tempconvert

Assignment Help DOT NET Programming
Reference no: EM131293308

- 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.
SAMPLE OUTPUT
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.
SAMPLE OUTPUT
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.
SAMPLE OUTPUT 1
Enter the temperature to convert 37
Was that input Celsius or Fahrenheit?
Enter C or F C
In Fahrenheit, that is 98.60
SAMPLE OUTPUT 2
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.

Reference no: EM131293308

Questions Cloud

Automated highways and self-driving vehicles : Cars that drive themselves. Study progress, safety, and social issues related to an automated system such as automated highways and self-driving vehicles.
What barrier might have gotten in way of any less successful : What barriers might have gotten in the way of any less successful strategies? And what type of strategic evaluation efforts do you think are necessary to keep an eye on progress in a large company like Dish?
Concepts of costs and production for ap microeconomics : Does anyone have practice questions for the concepts of costs and production for AP microeconomics?
Agreement over raising the debt ceiling of the country : Republicans and Democrats trying to make an agreement over raising the debt ceiling of the country can be looked at like a game of chicken.
Create a custom python module named tempconvert : 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.
Field of sharing economy in education : Which are the relevant points or things to take care on within the field of Sharing Economy in Education?
Explain how to successfully get customers to pay more : Explain how to successfully get customers to pay more for your products. Reference the article in support of your response. Explain how a specific pricing strategy will allow you to raise the price on your product successfully.
Find the aggregate mac for the region : Suppose that there are three firms in a region that are producing a common emission. The marginalabatement cost (MAC) for each firm is given by: MAC1 = 240 - 2E1 MAC2 = 192 - 1.6E2 MAC3 = 320 - 2.67E3The marginal damage function for the region is..
Advantages for airlines to control the ticket distribution : What are the specific advantages for the airlines to control the ticket distribution?- Compare and contrast two airlines and the methods they use to control ticket distribution.

Reviews

Write a Review

DOT NET Programming Questions & Answers

  How will you retrieve environment variables in c sharp

Question: How will you retrieve environment variables in C#.net?

  1 meets size criteria -2 incorporates a consistent look and

1. meets size criteria -2. incorporates a consistent look and feel and an easy-to-use and consistent navigation toolset

  Modify the console application to test it out

Modify the console application to test it out. Can add a for loop to pick out a random bar from the three, make sure as you go through the loop.

  Develop windows form application for the national soccer

Develop a Windows Form application for the National Soccer Association to enter the teams for each of the 8 group(input of teams for each group) - Develop the C# WinForm Application in Visual Studio 2013.

  Point class having x and y coordinates

Write a program that includes a Point class having x and y coordinates as data member. Also implement an overloaded constructor for the Point class.

  Design a web application using visual studio

Design a web application using Visual Studio.NET 2012 - the difference between the files is the character ‘h' is missing in the position 120 in the uploaded file.

  Define annual salary calculator

Create a simple ASP.NET web application using Microsoft Visual Studio 2008 that displays the text "Hello, World" on the home page. You will also add a page and build an Annual Salary Calculator on that page. This will be used as the foundation for..

  Demonstrate input validation using regular expression

Design, implement, test, and debug a C# program to demonstrate input validation using regular expression.

  Describe two types of loops that can be used to print

Describe two types of loops that can be used to print every third integer from 0 to 300 (i.e., 0, 3, 6, 9, etc.), each on its own line. Which would be a better choice and why? Write the code using that type of loop.

  Best way to code radio buttons that when

What is the best way to code radio buttons that when you check a checkbox, the radio buttons become active and add a cost to the Labor Price. I already have the buttons enabled when you select muffler, I can't figure out how to code the radio butt..

  Make interface for major and suitable classes for it

Using C#. make the interface for major and make suitable classes for each major. In student course instantiate IMajor major variable. In toString method call major.

  Discuss html- css

As an IT professional, you will frequently use the Web to located resources to help you with your work. There are a plethora of online   resources available, including news articles, reviews, blogs, videos, reference books, and tutorials.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd