Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

OOLSVIEW 215710514 (ratected View) Wo CTED VIEW Beca 1. Write a program that reads in the radius and length of a cylinder and computes the

image text in transcribed
image text in transcribed
OOLSVIEW 215710514 (ratected View) Wo CTED VIEW Beca 1. Write a program that reads in the radius and length of a cylinder and computes the area and volume using the following formulas area pi radius volume area length your program should have length as integer variable radius as double variable pi as Named Constant It prints the output with maximum 2 decimal digits. If area is greater than 20, it checks if the area is odd or not and prints it Here is a sample nun: Enter the radius and length of a cylinder: 5.5 12 The area is 95.0331 The volume is 1140.4 OAsk me aything hew)-Word (Product Activation Failed lernet can contain vinuses. Unless you need to edit it's saler to stay in Protected View. Enable Editing 2. Write a program that generates invoice for a restaurant, user is displayed following menu- ID Decription Kabsa Laham Mandi Rate 13.5 49 17.5 Marphut If user presses, k, it takes care of case of pressed key and displays following message Here is sample run: Your bill for Kabsa is KABSA13 VAT (5%) - 0.675 Total- 14.17 SAR

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions