Write pseudo-code for the given problem

Assignment Help Data Structure & Algorithms
Reference no: EM13945534

Part 1:

Write pseudo-code for the following problem:

You have a file containing sporting goods that are sold online. Each item record contains the item id, item name, item description, item category, item price, and the units in stock. If the category of the item is either "tennis" or "golf", then the price will be discounted by 15%. If the category of the item is "soccer", then the price will be discounted by 10%. For all of the other categories, the original price remains as is. If the number of units in stock is below 50, the item will be marked on the web site as "out of stock". Your part of the program is responsible for listing all of the items.

Part 2:

Think of scenarios when you would use a) a while-loop, b) a do-until loop, c) a for-loop. Write one pseudo-code example for each

Reference no: EM13945534

Questions Cloud

Program to calculate the average of 5 numbers entered. : Show what the PC monitor will show when the program is executed with the following values used: 27, 12, and 15.
Holcomb company reported these income statement : Holcomb Company reported these income statement data for a 2-year period. 2014 2013 Sales revenue $337,750 $283,710 Beginning inventory
Ben ren and vector rey are making a series of force : Ben Ren and Vector Rey are making a series of Force measurements using BB King's Force Probe. BB reports that the force is 0.72. Ben Ren says he feels a disturbance in the force of +/- 0.1. Vectra Rey says that the reading is exactly 0.72 because tha..
Find three different sample documents : For this assignment, you need to find three different sample documents and determine whether or not they are examples of technical communication using Markel's Six Characteristics of Technical Communication. Use these criteria to define whether or no..
Write pseudo-code for the given problem : Think of scenarios when you would use a) a while-loop, b) a do-until loop, c) a for-loop. Write one pseudo-code example for each
What steps can be taken to reclaim soils damaged by erosion : Distinguish between the terms "greenhouse effect" and "enhanced greenhouse effect". Include identification of four major greenhouse gases and their sources in your discussion.
Compare and contrast domestic and international terrorism : Considering the Global War On Terror (GWOT) and the focus on international terrorist organizations, is America doing enough to address "domestic" terrorism? Compare and contrast domestic and international terrorism
Return on common stock equity : Compute the following: (It is not necessary to use averages for any balance sheet figures involved.)
Why can sediments become important in a risk assessment : In risk, what are the main differences between the toxicity quotient approach and the hazardous quotient approach? Why can sediments become important in a risk assessment?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Explain the sorting techniques selection sort

Explain the following sorting techniques using appropriate algorithms- (i) selection sort (ii) bubble sort

  Declare a global array solution

Declare a global array Solution

  What would happen if that information were compromised

What rights to privacy do people have when using the Internet at home? Are their privacy rights limited? Do those same rights and limits exist at work? Explain your answer.

  Write a function called maxsubsum that takes a matrix a

Write a function called maxsubsum that takes a matrix A as an input, computes the sum of elements in each of its submatrices, and finds the submatrix that has the maximum sum

  Find shortest path tree by bellman-ford-dijkstra algorithm

Find the shortest path tree from every node to node 1for the graph of following figure using Bellman-Ford and Dijkstra algorithm.

  Identify data structures to organize typical file cabinet

Identify at least two data structures that are used to organize a typical file cabinet. Why do you feel it is necessary to emulate these types of data structures in a computer program?

  Communicationa significant distinction between online and

communicationa significant distinction between online and face-to-face classes lies in the area of

  Finding majority element

Let A be an array of n elements. An element x is said to be a majority element in A if it occurs in A more than n/2 times.

  How it would execute on a computer

We are going to trace the following program, i.e. simulate in your head how it would execute on a computer. To help you, a trace table is provided for you to fill. Unlike exam E1, our focus here is not only on keeping track of the values of each v..

  Question about software importance

Determine what makes software so important and list a number of ways that software has an impact on our life.

  The class linked bag did not have the data member itemcount

the class LinkedBag did not have the data member itemCount. Revise the method getCurrentSize so that it counts the number of nodes in the linked chain

  Write a context-free grammar for arithmetic expressions

Transform the context-free grammar obtained in Activity 5 to a pushdown automaton using the algorithm in Section 12.2.2. Turn in your solution by the date when Section 12.3 is finished.

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