Write a program that reads the radius of a sphere

Assignment Help Computer Engineering
Reference no: EM131522929

Question: 1. Write a program that reads the radius of a sphere and prints its volume and surface area. Use the following formulas. Print the output to four decimal places. r represents the radius.

Volume = 4Πr3
                3

Surface Area = 4Πr2

2. Write a program that reads the two sides and the height of a trapezoid from the user. Compute the area of the trapezoid using the formula given below, in which h represents the vertical height of the trapezoid and a and b represent the two sides of a trapezoid. Print the area to two decimal places

Area = (a + b) x h
              2

Reference no: EM131522929

Questions Cloud

How the components of the hawthorne study are incorporated : Describe how the components of the Hawthorne study are incorporated in current human resource functions. What was the main idea behind this study?
Explore style of leadership this decision reflects : Explain style of leadership this decision reflects, and discuss whether this move would lead to a positive evaluation of leadership.
Various safety rules-regulations or policies : There are various safety rules, regulations or policies in our homes, society or at our work that individuals or employees are supposed to follow
Differentiate projects from other functions : What are five characteristics which help differentiate projects from other functions carried out in the daily operations of the organization?
Write a program that reads the radius of a sphere : Write a program that reads the radius of a sphere and prints its volume and surface area. Use the following formulas. Print the output to four decimal places.
Suitability of your project selection please : If you have any questions at all about the suitability of your project selection please follow-up with your professor for his or her guidance.
Which company do you believe is winning the competition why : What are the competing businesses and what products do they sell? Which company do you believe is winning the competition? Why?
Job of cio for disney in orlando florida : Write a two page paper that lists and discusses the top ten tasks that you will work on and why these tasks are important in this new role.
Creating a presentation in powerpoint : Develop a closing process PowerPoint presentation. Your PowerPoint presentation must have speaker notes and these speaker notes.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Global economy

Explain why is the global economy so vital today? Explain how the global economy has altered since the mid-twentieth century.

  How to create a html website

Create a HTML website using the following guidance.

  Complete the design wlan based on ieee 802.11

Explain why 802.11b, is the first widely popular standard and still by far most used by the IT industry today.

  Draw the binary search tree

Draw the binary search tree which results from inserting the number in left-to-right order, assuming no balancing:

  How to evaluates an expression using this technique

Many early calculators used a post-fix entry to perform arithmetic calculations. For in case 2 + 3 in in-fix notation would be 2 3 + in post-fix notation. ( 2 + 3 ) * 4, would be 2 3 + 4 *. Utilizing a stack, post-fix expressions are very easily e..

  Questionassume that a risc machine uses five register

questionassume that a risc machine uses five register windows.a how deep can process calls go before registers must be

  Determining occurance as incident or disaster

Categorize the following occurrences as an incident or disaster. If an occurrence is a disaster, find whether or not business continuity plans would be called into play.

  Design a table or matrix to perform evaluation comparison

Design a table or matrix to perform your evaluation comparison. Summarize by discussing which is the best option based on the results from the previous step.

  Analyze the critical success factors

The IT department could not remove the old computers because there was no place to store them - Analyze the critical success factors, and state their conclusion and the lessons learned.

  Breach of security

A company has the resource XYZ. If there exist a breach of security, company may face a fine of $100,000 and pay other $20,000 in order to clean up the breach.

  Diffe-hellman algorithm

Alice and Bob use the Diffe-Hellman to agree on a secret key. They select the prime p = 11, and a primitive root mod 11 g = 2.

  Determine that the relationship between the volume

On the first test we looked at a cooling tank for a radioisotope test facility. From Geometry and calculus we can determine that the relationship between the volume of the heavy water (m^3) and the height of the water (m) in the storage tank is gi..

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