Programming and Problem Solving With C++
Programming and Problem Solving With C++
6th Edition
ISBN: 9781449694265
Author: Nell Dale
Publisher: Jones & Bartlett Learning
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 3, Problem 1PP
Program Plan Intro

Program Plan:

Following variables are used in the program:

diameter, radius. height, volume: To store the diameter, radius, height, and volume of cone respectively.

P: const keyword to define the value of pie.

Summary Introduction:

Program will use the Main () method, which will prompt the user to enter the diameter of the base and height of the cone. Then the volume of a cone is calculated using formula (1/3)*P*(radius)2* (height)and output is displayed.

Program Description:

The purpose of the program is to calculate and display the volume of a cone with given the value for the diameter and height of the cone.

Blurred answer
Students have asked these similar questions
You must implement a C++ program that calculates the position and velocity of a body thrown with an initial velocity (v0) and with an angle to the horizontal (angle). The results should be displayed on the screen every some time (0.1 seconds) in a horizontal row. To validate your program, use the following example run where v0=10 and angle=53o as shown in the image: The data must be printed with two decimal places, find out how to do this in C++.Once all the calculations are printed, the program must ask if you want to repeat or if you want to exit the program. You implement the way to do it.As always the report should include (use the standard report): Cover page with title, course and section, names and student numbers of your team members in alphabetical order by last name.Introduction indicating in one paragraph what the program does and pseudocode/algorithm of the program. Detailed flowchart. Source code. Pictures of a running example. Next, the theory of ballistics problems:…
With the help of c++, write a code that permits a user to input the surnames of 5 overall best students admitted to a university and the number of awards received by each.Your output should be the number of awards received, the student's name, and the %(percentage) of the total awards received. Finally, your output should also declare that the student with the highest number of awards is the winner.
Write a C++ program that displays a table of speeds in kilometers per hour with their values converted to miles per hour. The formula for converting kilometers per hour to miles per hour is: MPH = KPH * 0.6214. In the formula, MPH is the speed in miles per hour and KPH is the speed in kilometers per hour. The table that your program displays should show speeds from 60 kilometers per hour through 130 kilometers per hour, in increments of 10, along with their values converted to miles per hour.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Constants, Variables, Data types, Keywords in C Programming Language Tutorial; Author: LearningLad;https://www.youtube.com/watch?v=d7tdL-ZEWdE;License: Standard YouTube License, CC-BY