Write the pseudocode using if-then-else statements

Assignment Help Data Structure & Algorithms
Reference no: EM131822705

Assignment

Write the pseudocode using If-Then-Else statements and create a flowchart with a dual alternative decision structure for the following example:

A normal resting heart rate for an adult usually ranges from 60 to 100 beats a minute. Generally, a lower heart rate at rest implies more efficient heart function and better cardiovascular fitness.

Write a program that displays "Heart rate is normal" if the heart rate variable a user enters is within the "normal" range. If the heart rate is outside this range, then display "Heart rate is abnormal."

Your document must include:

• Pseudo code for the entire program.

• You may use Microsoft Visio to create your flowchart and export the drawing as a JPG. Paste your image in your Word document with your pseudo code. Use File >> Export As >> Image.

70_Flowchart.jpg

• Internal documentation, using block and/or line comments.

• You must declare all variables before using them in your pseudo code. Don't forget that variables are just names. You need to assign values to variables. For example:

Set price = 20
Or
Set dollars = 2.75

• Your pseudo code must illustrate all calculations.

• Your flowchart must depict each step in the program.

• Your flowchart must use 3 types of symbols: ovals (start and end terminal symbols), parallelograms (input and output symbols), and rectangles (processing symbols).

• All symbols must be connected by arrows that represent the flow of the program. The flow must make logical sense.

Reference no: EM131822705

Questions Cloud

What was the original pressure of the gas in the container : What was the original pressure of the gas in the container? What was the original temperature of the gas in the container?
Preparing the business activity statements : James Zhang owns and manages a restaurant at the Macquarie Shopping Center. James accepts only cash payment. Any of his staff can collect payments.
Genetics or the expectations and dictates of society : Determine whether you believe the actions of females and males are based more on genetics or the expectations and dictates of society.
Describe the issue related to the social science : Describe your selected social science issue and include two relevant questions that social science professionals might be interested in.
Write the pseudocode using if-then-else statements : Write the pseudocode using If-Then-Else statements and create a flowchart with a dual alternative decision structure.
What is the speed of propagation of waves : When it vibrates with the third harmonic the amplitude of the string at an antinode A of the standing wave on the string has an amplitude of 5 cm.
How long is the solenoid : A solenoid with air core has a magnetic induction of 0.08Weber/m2 at its center when a current of 40A flows through the wires having 500 turns.
Assess the impact of state-sponsored programs : Assess the impact of state-sponsored programs or interventions that may exist to address your selected public health issue.
Prepare a cash budget for july, august and september : Prepare a cash budget for July, August, and September. Forecasted cash receipts and forecasted cash payments

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Which algorithm uses fewer operations

Suppose that you have two different algorithms for solving a problem. To solve a problem of size n, the first algorithm uses exactly n22n operations.

  What is your recommendation for alamo foods

Given a discount rate of 9 percent (.09), perform present value analysis on the data for Alamo Foods. (Hint: Use the formula 1/ (1 + i)n to find the multipliers for years 1 to 6.), What is your recommendation for Alamo Foods?

  Create and test a class for a queue of objects

Your assignment is to create and test a class for a queue of objects. You may use any object class of your choice as the data for the queue.

  Write an algorithm that converts a decimal number

Write an algorithm that can be used to calculate the commission earned in a real estate transaction.  The chart below describes the formulas used to calculate the commission.

  Currency conversion development

Currency Conversion Development

  Dscribes the table created from each entity and the column

You are a database consultant with Ace Software, Inc. and have been assigned to develop a database for the Mom and Pop Johnson video store in town.

  Prove that floyd algorithm does not add duplicates

Suppose that you want to generate a random permutation of N distinct items drawn from the range 1, 2, ..., M.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  Create a linked list structure music that contains the data

Create a linked list structure Music that contains the data fields Name, Artist, Number_of _Songs, and a pointer to the list. Create the structure with 3 members and fill in data for each member.

  Write steps involved in performing binary search operation

Write the steps involved in performing binary search operation to search an element 56 in the following numbers.

  Explain how backtracking can be used

Show, with an example, how backtracking can be used to show that a graph with a chromatic number equal to 4 cannot be colored with three colors.

  Drawing stack frames for stacks and heaps

can explain on a high level as to how this happens. I'm not expecting a lengthy answer, just something accurate for my understanding!

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd