Question
anyone can generate the algorithom in plain english?and give an idea the meaning of every shape and value. Its done by flogaritm . Thanks
CALCULATIONS fa Circle Main Real area Integer radius Output Please enter the radius of a circle Input radius area 3 14 radius
0 0
Add a comment Improve this question Transcribed image text
Answer #1

// I HAVE PROVIDED EXPLAINATION FOR SHAPES AND THEIR MEANING

// I HAVE GIVEN AN ENGLISH ALGORITHM

// I HAVE ALSO WRITTEN A SAMPLE C CODE FOR FLOWGRAPH AND SHOWN ITS OUTPUT

SHAPES AND THEIR MEANING:-

1- Main
A rectangle with rounded cap ends is used to start and end each flowchart process path.
The shape in which "main" is written is a "rectangle with rounded cap ends".
The above shape is used to mark the start and end of a flowchart.
The symbol here marks the beginning of a program.
The entry point of any program is generally "main" function.
Hence "main" here marks the entry of the program.

2- Real area
The shape in which "Real area" is written is used to denote "declare".
A Declare Statement is used to create variables and arrays.
eg:- float area, here we are declaring a variable called "area" of "float" data type.
whenever we have to declare any variable we use the given shape.
we write the data type of variable and the name of variable inside the shape.

3- Integer radius
The shape in which "Integer area" is written is used to denote "declare".
A Declare Statement is used to create variables and arrays.
eg: int radius, here we are declaring a variable called "radius" of "int" data type.
whenever we have to declare any variable we use the given shape.
we write the data type of variable and the name of variable inside the shape.

4- Output "Please enter radius of a circle"
The shape in which "Please enter radius of a circle" is written is used to denote "output".
An Output Statement evaluates an expression and then displays the result on the screen.
An Output is something which is displayed on screen and shown to the user
Here we are showing user a message to enter radius of a circle.
We are notifying user by displaying the message on the screen.

5- Input radius
The shape in which "Input radius" is written is used to denote "output" as well as "input"
Here we are using to denote "input"
Here it signifies that we want the user to provide the input value for radius

6- area = 3.14 * radius ^ 2
The shape in which "area = 3.14 * radius ^ 2" is written is used to denote "assignment"
The Assignment shape is used to store the result of a calculation into a variable.
Here we are performing some calculation and then storing it in a variable
The "rectangle" shape is used to denote "assignment"
Here we are performing calculation "3.14 * radius ^2"
And then storing that calculation into "area" variable (also called assignment).

7- Output- The area is & area
The shape in which " The area is & area" is written is used to denote "output".
An Output Statement evaluates an expression and then displays the result on the screen.
An Output is something which is displayed on screen and shown to the user
Here we are showing the user the area of circle calculated.
The area of the circle shown is calculated based on the radius the user entered.
We are displaying the result of are calculation based on radius provided to user.
We are displaying results to user in output.

8- End
A rectangle with rounded cap ends is used to start and end each flowchart process path.
The shape in which "end" is written is a "rectangle with rounded cap ends".
The above shape is used to mark the "start and end" of a flowchart.
The symbol here marks the "end" of a program.
It signifies that all the task of the program are done
It signifies the termination of a process or program.


ALGORITHM:-
1- start the program
2- Declare a variable called "area" of real data type
3- Declare a variable called "radius" of integer data type.
4- Output to user "Please enter radius of circle"
5- take radius input from user and store it in variable "radius"
6- compute (3.14 * radius ^ 2) and store it in variable declared "area".
7- Output to user "The area is " and the value stored in "area" variable after it.
8- End the program.

// HERE I HAVE PROVIDED A SAMPLE C CODE

#include<stdio.h>

#include<math.h>

void main()

{

float area;

int radius;

printf("Please enter the radius of a circle ");

scanf("%d",&radius);

area = 3.14 * pow (radius,2);

printf("The area is %f",area);

}

Activities -Terminal ▼ Thu 09:16 anupam@private:-/Documents File Edit View Search Terminal Help anupam@private:/Documents$ ccActivities Visual Studio Code Thu 10:06 刂File Edit selection View Go Debug Terminal Help aa.txt- anupam-Visual Studio Code E

Add a comment
Know the answer?
Add Answer to:
anyone can generate the algorithom in plain english?and give an idea the meaning of every shape...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • C++ programming For this assignment, write a program that will act as a geometry calculator. The...

    C++ programming For this assignment, write a program that will act as a geometry calculator. The program will be menu-driven and should continue to execute as long as the user wants to continue. Basic Program Logic The program should start by displaying a menu similar to the following: Geometry Calculator 1. Calculate the area of a circle 2. Calculate the area of a triangle 3. Quit Enter your choice(1-3): and get the user's choice as an integer. After the choice...

  • Overview This assignment will give you experience on the use of classes. Understand the Application Every...

    Overview This assignment will give you experience on the use of classes. Understand the Application Every internet user–perhaps better thought of as an Internet connection–has certain data associated with him/her/it. We will oversimplify this by symbolizing such data with only two fields: a name ("Aristotle") and a globally accessible IP address ("139.12.85.191"). We could enhance these by adding other—sometimes optional, sometimes needed—data (such as a MAC address, port, local IP address, gateway, etc), but we keep things simple and use...

  • Write a C++ program named, gradeProcessor.cpp, that will do the following tasks: -Print welcome message -Generate...

    Write a C++ program named, gradeProcessor.cpp, that will do the following tasks: -Print welcome message -Generate the number of test scores the user enters; have scores fall into a normal distribution for grades -Display all of the generated scores - no more than 10 per line -Calculate and display the average of all scores -Find and display the number of scores above the overall average (previous output) -Find and display the letter grade that corresponds to the average above (overall...

  • please use python and provide run result, thank you! click on pic to make it bigger...

    please use python and provide run result, thank you! click on pic to make it bigger For this assignment you will have to investigate the use of the Python random library's random generator function, random.randrange(stop), randrange produces a random integer in the range of 0 to stop-1. You will need to import random at the top of your program. You can find this in the text or using the online resources given in the lectures A Slot Machine Simulation Understand...

  • Please read the article bellow and discuss the shift in the company's approach to genetic analysis....

    Please read the article bellow and discuss the shift in the company's approach to genetic analysis. Please also discuss what you think about personal genomic companies' approaches to research. Feel free to compare 23andMe's polices on research with another company's. Did you think the FDA was right in prohibiting 23andMe from providing health information? These are some sample talking points to get you thinking about the ethics of genetic research in the context of Big Data. You don't have to...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

  • Discussion questions 1. What is the link between internal marketing and service quality in the ai...

    Discussion questions 1. What is the link between internal marketing and service quality in the airline industry? 2. What internal marketing programmes could British Airways put into place to avoid further internal unrest? What potential is there to extend auch programmes to external partners? 3. What challenges may BA face in implementing an internal marketing programme to deliver value to its customers? (1981)ǐn the context ofbank marketing ths theme has bon pururd by other, nashri oriented towards the identification of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT