Chat with us, powered by LiveChat Pseudocode question | Writedemy

Pseudocode question

Pseudocode question

Given a scenario of a  department store that wants to print out one month’s of net revenue, by week. You are given a file of sales, by week, that you can assume can be read, with a read module with  variable of “sales” as the variable read in.

Each week’s sales  are to be discounted by 20% (due to taxes), resulting in that week’s net revenue. If the net revenue is more than $3000, the print out should state that. The revenue is what is to be printed. The last step should print out the total new revenue for that month.

 

Write the PseudoCode

Note: your pseudo code should include the basic programming logic structures:  Sequence, Decision, Looping

Hint: include the following as components of your pseudocode.

Initialization:  accumulator(s)?, counters? variables?

read  module?

calculate ?

Print ?  (A decision here)?

End?

 

Q2: Binary Search

Given a sorted array ( 1-based)

Array( 3, 15, 17, 18, 34, 89, 109, 256, 4096, 5000,5001, 6600, 6634, 7890)

and a target value of 15, show the sequence of  steps in the following table:

Tell me how many steps to find the target value and fill in the table…

Step     lowerbound    upper bound     midindex    value at mid index

1                  1                    14                   ?

 

Q3: Parsing Questions

Place parentheses correctly around these expressions

assume A, B, C are numeric while X, Y, Z are Boolean

 

1.  A^2^3 / B / C

2. A > B and  B > C * 10

3. A – B – C * A

4.  X and Not B or Z

 

 

Q4: Function Fun

Given the function below: where Double  means that parameters a, b are floating point numerics.

def fun( a: Double, b: Double ) =  b * a > a

Write out the result and return the answer

1. fun(4, 3)

2. fun(4, 0.5 )

3. fun(2 + 1, 2)

 

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order