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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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