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

  Write a program that reads a file and builds a linked list

Write a program that reads a file and builds a linked list. After the list is built display it on monitor. You may use any appropriate data structure, but it should have a key field and data. Two possibilities are a list of your favourite CD's or ..

  Advanced systems analysis and designtasks 1 - produce a

advanced systems analysis and designtasks 1 - produce a system specification indicating functional and non-functional

  Write an algorithm to count nodes in a linked list

storage pool and that there is a special null value. Write an algorithm to count the nodes in a linked list with first node pointed to by first."

  Write a program to load an array

Write a program to load an array

  Coefficients of algorithm and negative coefficient mean

How could you utilize the larger grid size and longer time step? Write down the coefficients of your algorithm? What would negative coefficient mean?

  Draw a structured flowchart or write pseudocode

Draw a structured flowchart or write pseudocode that describes the process of looking up a word in a dictionary. Pick a word at random and have a fellow student attempt to carry out your instructions.

  Basic manipulation with pointers

The aim of this homework is to get familiar with basic manipulation with pointers and simple/double linked lists, such as: finding (searching for) a node in a list, dynamically adding/deleting a node in a list, creating new list, printing a list, ..

  Hardware platform of the target embedded systems

An embedded system is a computer system performing dedicated functions within a larger mechanical or electrical system. Embedded systems range from portable devices such as Google Glasses, to large stationary installations like traffic lights, fa..

  Display the dfs starting from a specified vertex

Design and implement a driver to show the following (check for 2 graphs; 1 is provided, including the starting vertex):Display the dfs starting from a specified vertex;Display the discovery/finishing time for each node in the graph;Show the Parenthes..

  Prepare a context diagram for the new system

Susan Park has completed a preliminary investigation and performed the fact-finding tasks. Now, she will use the results to develop a logical model of the proposed information system. Prepare a context diagram for the new system

  Creating java program using two arrays

Create a program in Java which defines 2-unconstrained arrays of user defined length n, that contain n Random numbers each and which outputs addition of pairs of elements.

  Create an asp.net project with visual studio.net

CpCreate an MS Access database called "Members.mdb." Add a table called "tblScores" with the following columns.

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