IFT 194 ( ASAP)
Q1: 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 PseudoCodeNote: your pseudo code should include the basic programming logic structures: Sequence, Decision, LoopingHint: include the following as components of your pseudocode.Initialization: accumulator(s)?, counters? variables?read module?calculate ?Print ? (A decision here)?End?Q2: Binary SearchGiven 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 index1 1 14 ?Q3: Parsing Questions (@15)Place parentheses correctly around these expressionsassume A, B, C are numeric while X, Y, Z are Boolean1. A^2^3 / B / C2. A > B and B > C * 103. A – B – C * A4. X and Not B or ZQ4: 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 > aWrite out the result and return the answer1. fun(4, 3)2. fun(4, 0.5 )3. fun(2 + 1, 2)