Express HelpLine

ExpressHelpLine is the largest online question and Expert answer site.
Thousands of Verified Experts/Tutors are online round the clock.

Recent Questions:

Question (Category: Programming)
Using pseudocode: 1) write assignment statements that perform the following operations with the variables a,b,c. a. add 2 to a and store the result in b b. Muliplies b times 4 and stores the result in a c. divides a by 3.14 and stores the result in b d. subtracts 8 from b and stores the result in a Optional Information:Computer OS: Windows XPBrowser: IEProgramming Language: Using pseudocode:Compiler: noneAlready Tried:reading tutorials and text. If I could see this question answered once correctly I could then use it as a better example instead of all this hypotheical text. I need to see an answer to a specific question written out.
Info Request
Hi, Here's your pseudocode Begin Main ModuleDeclare a,b,c as RealDisplay Enter value of aInput aDisplay Enter value of bInput bDisplay Enter value of cInput cSet b = a+2 //a. add 2 to a and store the result in bSet a = 4*b //b. Muliplies b times 4 and stores the result in aSet b = a/3.14 //divides a by 3.14 and stores the result in bSet a = b-8 //. subtracts 8 from b and stores the result in aDisplay Values of a,b,c,d are respectively ,a,b,c,dEnd Main ModuleHope this helps.Please click ACCEPT to pay me for my time. Bonus and positive feedback are highly appreciated.
Customer's Reply
Here's the code.This was one was mathematical ****************************************************************************************8 Begin Main moduleDeclare NoofShares as IntegerDeclare InitialCostPerShare ,FinalcostPerShare as RealDeclare BuyingCost,SellingCost as RealDeclare Commission1 , Commission2 as RealDeclare Profit,Loss as RealSet NoofShares = 1000Set InitialCostPerShare = 32.87Set FinalcostPerShare = 33.92Set Commission1 = 0.02 * InitialCostPerShare * NoofSharesSet Commission2 = 0.02 * FinalcostPerShare * NoofSharesSet BuyingCost = InitialCostPerShare * NoofShares + Commission1Set SellingCost = FinalcostPerShare * NoofShares + Commission2Display Amount of money Joe paid for his stock ,InitialCostPerShare * NoofSharesDisplay The commission Joe paid his broker when he bought the stock,Commission1Display The amount that Joel sold the stock for ,FinalCostPerShare * NoofSharesDisplay The commission Joe paid his broker when he sold the stock,Commission2IF BuyingCost > SellingCostSet Loss = BuyingCost - SellingCost
Info Request
Ok.


Answer by Matt D. (Purchased 2 times and rated )