Examples of pseudocode containing control structures

Assignment Help Data Structure & Algorithms
Reference no: EM13945457

The following are a few examples of pseudocode:

>> Example 1

start

read Customer_Order_Record
if Quantity > 100 then

Discount = 20

else

if Quantity > 12 then

Discount = 10

endif

endif

Total = Price* Quantity
Total = Total - (Discount* Total)/100
Print Total

Stop

>> Example 2

Start

Read Student_Marks_File
Pass = 0
Fail = 0
Total = 0
X = 0
while (End Of Student_Marks_File) do

Total = Total + Subject_Marks

if (Subject_Marks > 40) then

Print "Student passed in" Subject

else

Print "Student failed in" Subject

endif
X = X +1
Read Next Record

endwhile
Average = Total/X
Print "Average Marks of" Student_Name "are" Average

Stop

From the above examples of pseudocode containing control structures, analyze the logic implemented in the pseudocode.

Reference no: EM13945457

Questions Cloud

What racial tensions existed in the early church : What racial tensions existed in the early church? How are they resolved? Is a quota system used here to pacify the Grecian Jews? Is this a form of affirmative action?"
Design a class named productionworker that extends employee : The workday is divided into two shifts: day and night. The shift field will hold an integer value representing the shift that the employee works. The day shift is shift 1 and the night shift is shift 2. Design the appropriate accessor and mutator ..
Illustrate your answer by referring to specific brands : Illustrate your answer by referring to specific brands within each of the two product categories you have chosen.
What principles of statutory interpretations were utilized : What principles of statutory interpretations were utilized by the Court in this case - Explain in plain English the implications of Australian Maritime Officers'
Examples of pseudocode containing control structures : From the above examples of pseudocode containing control structures, analyze the logic implemented in the pseudocode.
Create a flowchart and pseudocode using control breaks : The system should store the current inventory levels for different raw materials in a file.
Both fishing method and the range of fishing operation : describe the development which have taken place during recent years in both fishing method and the range of fishing operation
Loss on the abandonment : Loss on the abandonment of office equipment $25,000 Loss on the sale of a building
What disciplines are essential for spiritual growth : What does Scripture and current research say about the role of apostles, prophets, evangelists, shepherds, and teachers in church multiplication?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

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

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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