Question

In: Computer Science

Flow chart. Create a flowchart for each situation using Flowgorithm, Microsoft Word, Microsoft PowerPoint or handwritten...

Flow chart. Create a flowchart for each situation using Flowgorithm,
Microsoft Word, Microsoft PowerPoint or handwritten (handwritten), with legible handwriting.
1. Cylinder Volume (If) (15 pts.)
to. Declare and initialize the required variables and required constants.
b. Declare Pi as constant, declare it the correct way, according to its value, and
assign it the value of.
c. Declare the variable for the volume of the liquid, which will have a number
real.
d. Prompt the user for the radius and then the height of a cylinder in real numbers.
and. Ask the user for the volume of liquid to be stored in the cylinder.
F. Calculate the volume of the cylinder using the following equation, where
v = volume of cylinder, r = radius, a = height.
v = Pi * r2 * a
g. Present the cylinder volume to the user.
h. Use the If structure to evaluate the following conditions.
1. If the volume of the liquid is greater than the volume of the cylinder, present
the message “Liquid will overflow”.
2. Otherwise, if the volume of the liquid is less than half of the
cylinder volume, display the message “You can add twice as much
liquid volume ”.
3. Otherwise, display the message “There will be no overflow
liquid".

Solutions

Expert Solution

Hi,

Hope you are doing fine. I have dessigned the flowchart of the above question using flowgorithm. All the requirements have been kept in mind and relevant comments are provided (Text in dotted boxes) which give the explanation of the problem. However, there is one thing which I would like to calrify regarding the above question. It is about the constant 'Pi'. In flowgorithm, we cannot declare Pi as a constant because it is already predfined with an appropriate value in the software. Redclaring it would cause errors. 'Pi' can be used directly in flowgorithm without declaration as it is predefined constant.

Flowchart:

Pseudocode:

Function Main
... declaring volume
Declare Real v
  
... declaring radius of cylinder
Declare Real r
  
... declaring the height of cylinder
Declare Real a
  
... declaring the volume of liquid to be storeed in cylinder
Declare Real liquid
  
... Prompting user to give inputs of r,a and liquid one after the other
Output "Enter the radius of the cylinder: "
Input r
Output "Enter the height of the cylinder: "
Input a
Output "Enter the volume of liquid to be stored in the cylinder: "
Input liquid
  
... Calculating volume of cylinder. Note that Pi has never been declared in the prograam. This is because Pi is a predefined constant in flowgorithm and declaring a variable with same name will produce an error.
Assign v = Pi * r*r*a
Output "Volume of cylinder is: "&v
  
... checking if volume oof liquid is greater than volume of cyinder
If liquid>v
Output "Liquid will overflow"
False:
  
... checking if volume of liquuid is less than twice of volume of cylinder
If liquid < 2*v
Output "You can add twice as much liquid volume"
False:
Output "There will be no overflow liquid"
End
End
End

Output:


Related Solutions

For this assignment, you will create flowchart using Flowgorithm to represent the logic of a program...
For this assignment, you will create flowchart using Flowgorithm to represent the logic of a program that allows the user to enter a number of dollars and convert it to Euros and Japanese yen. You will have to do some research on current rates of monetary exchange for this one. Don't forget to declare your variables and use output statements to prompt the user to enter specific values prior to including an input statement. You will use an assignment statement...
create flowchart using Flowgorithm and Pseudocode for the following program example:   Design a program for Jones...
create flowchart using Flowgorithm and Pseudocode for the following program example:   Design a program for Jones College. The current tuition is $12,000 per year, and tuition is expected to increase by 5 percent each year. Display the tuition amount for each year over the next five years (use a looping structure).
CAREER E-PORTFOLIO INSTRUCTIONS The assignment is to create a Career E-Portfolio using Microsoft PowerPoint. As Microsoft...
CAREER E-PORTFOLIO INSTRUCTIONS The assignment is to create a Career E-Portfolio using Microsoft PowerPoint. As Microsoft PowerPoint competency is a requirement of this class, other technology will not be accepted. Elements of the E-portfolio assignment include (minimum of four slides required): Title page with picture, name, contact information, and a brief professional and educational overview Resume page Projects AND/OR Activities page including projects completed in classes, college club activities, and research conducted as part of the hospitality program. Volunteer AND/OR...
Using Microsoft® PowerPoint®, Microsoft® Word, or a drawing program of your choice, draw a diagram/model of...
Using Microsoft® PowerPoint®, Microsoft® Word, or a drawing program of your choice, draw a diagram/model of a business process with which you are familiar. Write a 1- to 3-page paper that describes the business process. Describe the diagram/model. Propose improvements to the business process. Draw a revised process diagram/model that reflects the improved business process. Format your paper according to APA guidelines. Submit your paper and the two diagrams/models as one Microsoft® Word document to the Assignment
Microsoft leases rights to Microsoft Word, Excel, Powerpoint and other software applications to NJCU School of...
Microsoft leases rights to Microsoft Word, Excel, Powerpoint and other software applications to NJCU School of Business, Campus Administration for 14 annual payments of $8,500 at the beginning of each year. The payments will begin five years from today. If the market rate of interest is 8%, what is the present value of the payments? Provide the answer in Excel with formula please
Create a project charter using Microsoft Word that will be based on the following scenario: Scenario:...
Create a project charter using Microsoft Word that will be based on the following scenario: Scenario: You have just been placed on an IT project management team to develop a Master Patient Index (MPI) system. This 300-bed facility is currently using a paper- based system and is slowly making the transition to electronic systems. The system they want to purchase and manage is an electronic MPI system for the Admissions department. They want this system to be able to be...
Using Microsoft Word, create an email message to your boss that: Summarizes the requirements of the...
Using Microsoft Word, create an email message to your boss that: Summarizes the requirements of the CAPSIM Business Simulation project and describes how you will approach the project. Summarizes the requirements of the Capstone project and describes how you will approach that project. Your email should be formatted according to the guidelines. Your document should contain two paragraphs and be no longer than one page.
Use Microsoft PowerPoint to create slides, which will be the basis of the guide or handout....
Use Microsoft PowerPoint to create slides, which will be the basis of the guide or handout. You are required to cite your source(s) as it relates to your application slide. Other citations are permitted, but this is not a requirement for the assignment. Title slide (first slide): Include a title slide with your name and the title of the presentation. Scenario Slide (one slide): This slide should include a brief scenario, then identify a patient who is experiencing a specific...
Using the table function in a Microsoft Word Document, create a table which compares and contrasts...
Using the table function in a Microsoft Word Document, create a table which compares and contrasts the following payments systems: 1. RBRVS 2. RUG’S 3. APC’s Include in your comparison include at least the following elements Classification system(s) used (ICD-10-CM, ICD-10-PCS, CPT, etc.) Health care setting (Inpatient, outpatient, physician office, etc.). Examples of who uses the payment system (Medicare, Medicaid, commercial payers, etc.) Examples of data that is required for the payment system (principle diagnosis, principle procedure, discharge disposition, etc.)
I need a Flowgorithm chart of this #include using namespace std; int main() {    float...
I need a Flowgorithm chart of this #include using namespace std; int main() {    float CISBook[] = {55.5,35.8,67.5};    float MATHBook[] = {25.5, 54.5};    float MECBook[] = {65.0,75.5,86.8};    float sumCIS=0, sumMATH = 0, sumMEC = 0;              for (int i=0; i<4; i++)    {sumCIS += CISBook[i];}       for (int i=0; i<3; i++)    {sumMATH += MATHBook[i];}       for (int i=0; i<4; i++)    {sumMEC += MECBook[i];}       cout<<"\nTotal for CIS Books:...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT