Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an algorithm to compute the area of circles. Your algorithm should prompt the user to take the number of circles and their radius values.

image text in transcribed

Write an algorithm to compute the area of circles. Your algorithm should prompt the user to take the number of circles and their radius values. Then it should compute the areas of each circle. Finally, your algorithm will print both radius and area of all circles into the output. [N.B. you need to use iterative statement for solving the problem. Consider Pi = 3.14159] Area of how many Circles you want to compute? 3 Input: Key in radius values: 2.5 3.12 2.16 Radius is 2.5 and the Area is 19.63 Output: Radius is 3.12 and the Area is 30.76 Radius is 2.16 and the Area is 14.65 Write an algorithm to take a list of numbers from user and determine the numbers divisible by the number 7. You need to first prompt the user that how many numbers s/he wants to input and then take the numbers. After taking the numbers, you check which numbers are divisible by 7 from the list. You need to print the number along with the position of the number. Finally, you need to print how many numbers from the list is divisible by 7. If there is no number divisible by 7 then print the message "Sorry, the list doesn't contain any number divisible by 7". Input: How many numbers to input? 5 22 21 15 78 49 Output: Number: 21 Position: 2 Number: 49 Position: 5 Numbers divisible by 7 is: 2 Write an algorithm to take a list of numbers from user and determine the grade for CSCI1320 students. You need to first prompt the user to know how many students are in the class and then take the final scores in a list. After taking the scores, you check which grade the student has got based on the input score stored in the list. If the score is between or 90 and 100 then it's an "A' grade, if it's between or 80 to 89 then 'B' grade and so on. Input: How many scores to input? 5 63 71 95 52 80 Point Distribution: Grade D Grade C Grade A Output: Score: 63 Problem 1: 20 pts Problem 2: 20 pts Problem 3: 30 pts Problem 4: 30 pts Score: 71 Score: 95 Grade F Score: 52 Grade B Score: 80 neral Guideline

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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

1. Discuss the four components of language.

Answered: 1 week ago

Question

f. What stereotypes were reinforced in the commercials?

Answered: 1 week ago