Click to like/follow us on:
Write an algorithm in pseudocode that will request for the radius of a circle. afterwards, it will compute and display the circumference and area of the circle.
Premise:
The problem above unlike others will read some other values with itself. in the other the word some value are constant and you have to make the algorithm to be aware of this kind of constant and read the value instead of requesting for it. The constants here is Pi which have the value 22/7 ~ 3.142 and 2.
Solution:
Major Step
  1. Request Data
  2. Calculate Data
  3. Display Results (Circumference, Area of the circle)
Stepwise Refinement
  1. Request Data
     1.1 Request radius
  2. Calculate Data
     2.1 Circumference = 2 * Pi * radius
     2.2 Area = Pi * radius * radius
  3. Display Result
     3.1 Display Circumference
     3.2 Display Area

SHARE THIS POST WITH YOUR FRIENDS...::

Related Posts:

  • Essentials of Java Programming LanguageIf you have not studied problem solving and algorithm development, it is advised that you do so. Oh! we have no class and it has not being named. Let the wizard name the class for us. Listen to him; public class MyFirs… Read More
  • Unn Clearance for the Newly admitted Students You Have Completed Your Acceptance. What Next? This is for freshman (The newly admitted students to the University of Nigeria, Nsukka).You are free to ask any question and you will be cleared wherever necessary. Cleara… Read More
  • Unn Supplementary Admission List II for 2014/2015 Released  The long awaited UNN 2014/2015 supplementary admission list II is out. To make sure that you search the list thoroughly search it with your correct jamb registration number or your any of your names you use during… Read More
  • After Clearance what nextAfter your clearance in UNN the next steps you need to follow are stated below. Hostel/Accommodation: After step 1 below you can apply for hostel using the same procedure you use when paying for other fees like school fee and… Read More
  • Unn Supplementary Admission List III for 2014/2015 Released  The long awaited UNN 2014/2015 supplementary admission list III is out. To make sure that you search the list thoroughly search it with your correct jamb registration number or your any of your names you use durin… Read More

0 comments:

Leave a Reply

All Posts

Access all posts here!

Categories

Unordered List

Sample Text

Lists of Jobs in the United States

List of Courses & Outlines For UNN Students

Popular Posts

Like us on Facebook

Recent Posts

Text Widget