Calculate the net profit for all the products

Assignment Help Basic Computer Science
Reference no: EM13215282

Problems to Solve
Fill in the following table by walking through the logic above. The idea is to analyze how the chart and pseudocode was created, because you will be doing this in a few minutes, so do not just jump to the easy answer. Follow the steps as if you are the computer executing the software designed.
Problem lineItemPrice lineItemQuantity saleTaxRate Return amount
1 [5.50, 3.00, 2.25] [12, 3, 10] 5%
2 [5.50] [5] 5%
3 [] [] 5%

Calculate Profits
Description
Given the list of all the product prices and wholesale prices as well as a list of all the items sold for each product calculate the net profit for all the products.
Flowchart
<insert here>
Pseudocode
function totalProfits (allProductSalesNumbers: Array,
allProductPrices : Array,
allProductWholesalePrices : Array)
returns double
end function

 

Reference no: EM13215282

Questions Cloud

Institution of slavery was firmly entrenched : In 1860, the institution of slavery was firmly entrenched in the United States; by 1865, it was dead. How did this happen?
Which of the following statements is true : Which of the following statements is true?
Use the above grammar to derive the string : Here is a context-free grammar that can be used to generate algebraic expressions via the arithmetic operators (addition, subtraction, multiplication, and division), in the variables p, q, and r.
Define environment and general good of society : In particular do you think subjects like customer and employee safety, environment and general good of society fits in this framework or they essentially ignored?
Calculate the net profit for all the products : Given the list of all the product prices and wholesale prices as well as a list of all the items sold for each product calculate the net profit for all the products.
Considering the current political and social circumstances, : Considering the current political and social circumstances, who really won the Scopes Trial? What did Sinclair mean when he said, "I aimed for the reader's heart and hit him in the stomach?"
Plans call for the following numbers of washing machines : Bindley Corporation has a one-year contract to supply motors for all washing machines produced by Rinso Ltd.
Value of royalties flowing-particular licensing agreement : As a technology supplier, what means would you use to calculate the value of royalties flowing from a particular licensing agreement?
Which particular software products are used at your company : Which particular software products are used at your company?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Research the major middleware providers

The language to use if need is Java. Make sure you cite references and adhere to the academic guidelines for writing a research paper.

  Internet access providers

Should Internet access providers or telephone companies be allowed to monitor how you use your Internet or telephone connection? Why or why not?

  Explain program manager for human services program

Write down 200- to 300-word email to friend describing new position and its responsibilities, incorporating all vocabulary words.

  What value would be returned from call to its size() method

If a collection stores 5 objects, what value would be returned from a call to its size() method?

  How analysts compute cost of information system

When the analysts compute the cost of an information system, they seldome include the cost of the employee laybor for using that system.

  Explain specific challenges of facing designer

Explain specific challenges of facing the designer, specifically with regard to limitations of hardware, software and interface design two paragraph each.

  Why chain of custody must be followed in investigation

You are a computer forensics investigator for a law firm. The firm acquired a new client, a young woman who was fired. What is chain of custody and why must it be followed in investigations?

  Write a fragment of code that accepts integers

write a condition to test if the point is outside the rectangle. Assume that x increases to the right and that y increases to the top. 2.Write a fragment of code that accepts integers from the user until a negative number is entered. The prompt sh..

  The program should not accept quantities

Input Validation: The program should not accept quantities, or wholesale or retail costs, less than 0. The program should not accept dates that the programmer deter- mines are unreasonable.

  Required value for the move command

Shape_index is a required value for the move command. It is the index of the shape in the shape data arrays that you wish to move. It should range between 0 and MAX_SHAPES - 1. Be sure to validate the index.

  Recover the corresponding encryption key

1. Recover the corresponding encryption key knowing that the first ciphertext word corresponds to plaintext "Recall".

  Windows server capability enables-mass installation quickly

What Windows Server 2008 capability enables them to do mass installation quickly and efficiently? Write general steps are involved in setting up this capability? Can capability also be used to install Windows 7 on 24 new client workstations arrivi..

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