Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

The pics below are an example of i want it using namespace std and pause 20. Pizza Pi Joe's Pizza Palace needs a program to

image text in transcribed
The pics below are an example of i want it using namespace std and pause
image text in transcribed
image text in transcribed
20. Pizza Pi Joe's Pizza Palace needs a program to calculate the number of slices a pizza of any size can be divided into. The program should perform the following steps: A) Ask the user for the diameter of the pizza in inches. B) Calculate the number of slices that may be taken from a pizza of that size. A) Display a message telling the number of slices. To calculate the number of slices that may be taken from the pizza, you must know the following facts: Each slice should have an area of 14.125 inches. . To calculate the number of slices, simply divide the area of the pizza by 14.125. The area of the pizza is calculated with this formula: Area r NOTE: is the Greek letter pi. 3.14159 can be used as its value. The variable r is the radius of the pizza. Divide the diameter by 2 to get the radius. Make sure the output of the program displays the number of slices in fixed-point nota- tion, rounded to one decimal place of precision. Use a named constant for pi. MatPakbsz PrscticeChapten3-Micrusuit Visual Studi Edit View Project Bunld Incrediburild ebug leam Data Lake lools lest K lools Analyze Window He Debug x86 Local Windows Debugger -ab - maino ,//Ha" Pakh", xpersxinns includcciostre2 cout Etti iliu oEihuble is #apl (nu-bur) tEt bylgs.ta undii 16 rna thress %u16 hes exltod with Sode

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is a verb?

Answered: 1 week ago