Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions Write a program to implement and test the algorithm that you designed for Exercise 1 5 of Chapter 1 . The instructions to Exercise
Instructions
Write a program to implement and test the algorithm that you designed for Exercise of Chapter The instructions to Exercise have been posted below for your convenience:
Exercise
Given the radius, in inches, and price of a pizza, design an algorithm to find the price of the pizza per square inch.
You may assume that the value of pi
In your program, declare a named constant PI to store this value.
Below is an example of how the completed program should work:
Enter the radius of the pizza:
Enter the price of the pizza:
The price per square inch is:
Since your program handles currency, make sure to use a data type that can store decimals.
Task #: Declare PI as a constant
Test Feedback:
No attempts made
Task #: Correct output calculated and displayed
Test Feedback:
Status: FAILED!
Check:
Test: Test case
Reason: Unable to find in the program's output.
Enter the radius of the pizza: Enter the price of the pizza: $Price of the pizza per square inch: $
Error : AssertionError Unable to find in the program's output.
Timestamp: ::
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started