Write a program flowchart

Assignment Help Data Structure & Algorithms
Reference no: EM13167953

Write a program FLOWCHART that lets the user enter a sequence of numbers. The program should stop when it notices that the last two numbers entered were identical. At this point, it should report how many entries were made. For example, the user could enter the following sequence:

44
9
93
94
44
2
44
104
104

after which the program would stop and output 9 (because the user made 9 entries).

Note that the program is not counting distinct numbers entered - if the same number is entered multiple times, it should be counted multiple times. The user should NOT be asked for the length of the sequence in advance. The length of the sequence is up to the user and will not necessarily be a multiple of 3.

Your program may use the following operations:

  • Output information (text, numbers, etc.)
  • Input a real number, integer, or boolean value
  • Store a numeric or boolean value into a variable
  • Perform arithmetic operations: add, subtract, multiply, divide, integer quotient, integer remainder
  • Perform numeric comparisons: equals, does not equal, less than (or equal to), greater than (or equal to)
  • Perform boolean operations: and, or, not
  • Make decisions
  • Loop (go back to an earlier point in the program)

 

 

Reference no: EM13167953

Questions Cloud

What is the ph of a buffer system : What is the pH of a buffer system that contains 0.240 M hydrocyanic acid HCN and 0.190 M sodium cyanide NaCN? The pKa of hydrocyanic acid is 9.31.
State what is the ph after naoh : A buffer containing 0.4316M of acid, HA, and 0.1549M of its conjugate base, A- has a pH of 2.20. What is the pH after 0.0019 mol NaOH
What value is obtained for the ka of acetic acid : What is the concentration of the vinegar in weight percent? (Assume a density of 1.030 g/mL.) If the pH of the vinegar was 3.44, what value is obtained for the Ka of acetic acid?
Suppose that the density of the mixed solutions : Assume that the density of the mixed solutions is 1.00 g/mL, that the specific heat of the mixed solutions is 4.18 J/(g celcius), and that no heat is lost to the surroundings. The deltaHrxn for the neutralization of NaOH with H2SO4 is -114 kJ/mol ..
Write a program flowchart : Write a program FLOWCHART that lets the user enter a sequence of numbers. The program should stop when it notices that the last two numbers entered were identical.
Compute the volume of naoh that will be needed : A student plans to titrate 25 mL of a .134 M HNO3 solution with .179 M NaOH solution. Calculate the volume of NaOH that will be needed to reach equivalence point.
Create a new file called week3prog3 : Linux® Script 3 Requirements In the same folder as last week, create a new file called week3prog3[name].scr. Change the permissions on this new file to add the execute bit for user, group, and owner
Explain what is the final temperature of the mixture : degree C is mixed with 35.2 g/mL of water (density = 1.0 g/mL) initially at 24.4 degree C in an insulated beaker. Assuming that no heat is lost, what is the final temperature of the mixture?
Explain how much ice is required to cool : When ice melts, it absorbs 0.33 kJ per gram. How much ice is required to cool a 13.0 oz drink from 74 degree F to 31 degree F

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Linked list class to hold a series of integers

1) Design your own linked list class to hold a series of integers. The class should have member functions for appending, inserting, and deleting nodes. Dont forget to add a destructor that destroys the list. Demonstrate the class with a driver progra..

  Write adjacency-list representation for complete binary tree

Provide the adjacency-list representation for complete binary tree on 7 vertices. Provide the equivalent adjacency - matrix representation. Suppose that vertices are numbered from 1 to 7 as in binary heap?

  Discuss new security features in windows server

Which of the system changeover methods is the most expensive? Why? Which of the system changeover methods is the most risky? Why?

  Calculations on rows and columns of an array

Make a menu bar with a document menu that includes a Perform Action command and an Exit command. The Perform Action command calculates either the sum or the average of rows or columns in array and displays result in a message box.

  Question related to normalization

Think about a typical job order that might include the following information. Design a single table to hold all the data needed to store a job order including this information.

  Write a program that implements the linked list

Write a program that implements the linked list Include the Node struct, the typedef NodePtr statement, and the head_insert() function Then write a main() that does these steps: creates a head for the list.

  Analogue of max flow min cut theorem-capacitated network

Explain how to define the s-t cut on node capacitated network as opposed to edge capacitated network, and how would one illustrate that analogue of the max flow min cut theorem.

  Create list of major steps to follow to get input

Create a list of major steps to follow to get input, process, and output desired information (software requirements). Refine the list to include individual refined steps (algorithm).

  Data structures and algorithm design

Data Structures and Algorithm Design

  How output of leaky bucket policer can be fed in second

Illustrate how output of the leaky bucket policer can be fed into second leaky bucket policer so that two leaky buckets in series police average rate, peak rate, and burst size.

  Write algorithm to prompt for and accept four numbers

Write the algorithm which will prompt for and accept four numbers, sort them into ascending sequence and display them to screen. Your algorithm is to include module called Order _two_numbers.

  Program development cycle for algorithm using pseudocode

Illustrate all your work. Use modular approach to solving this problem. Give the following submodule. Calculations - module to compute gross pay. Using the Program Development Cycle, develop an algorithm using pseudocode for the following task.

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