Pseudocode - Sir Ali Akram ON 2020 - 22

You might also like

You are on page 1of 2
PRM ON 2020 - 22 Ee ay el ekeai sete DECLARE TeemCode(] © ("RI", "32", TEE, TEE", “Gi, "2" mpeg eaty Tears sea y DECLARE Deseription[] @ ("CASE Compact", “CASE Tower”, “RAM 8 GB", “RAM 26 GET, “RAM 22 GB", “1 TB EDD", “2 3B MDD", "4 TB HDD", “240 GE SSD", ~400 GB SSD", "2 TB HOUT, “2 TB EDD", "4 TR MDD", “DVD/B1u-Ray layer”, “DUD/Blu-Ray Bayesear", “OS Standsed Version”, "OS Pesessionz! Uersisn”) DECLARE Pricel] & (75.0, 180.0, 79.95, 145.68, 255.68, 4 89.99, 129.99, 50.0, 100.0, 200, 178.0 99, 65.95, 129.65, 55.95, 116.98, 49.95, DECLARE parchased[17] + INTE DECLARE cotal, amcuntSaved, finalTatal : DOUBLE CONST basicCost € 200 total © basieCose Chocee Case type fron the following Lis “Index “, “Item Code", “Description”, R count 1 TOD RINT count, ItemCode count], Description [count], Price{count] Next INPUT cazeChoice purshased[ezeeChatce) @ purchssad{caseChedes) + 2 eChoice] “Choose 3AM type from the following 1ist’ “Inden “, “Ivan Code", “Description”, ‘TeenCode [ssune], Description [esunt], Pesee{seune] ENEUT canthoice UNTEL sanCheace 2 2 And ranthoice < purchased[sanChoice] © parchased[ramChoicel + 2 total © total + FriceframChoice! FOR count © € TC # PRINT count, TtemCode(count], Description [count], Fricefcount] OT mainoDCnoice purchssed[mainHDOCheice] € parchasedimaisHDDChoice] + 1 Boral © conal + Price{msinlnocaoice] “So far You have bought * Index ", "Item Code", “Description”, ~P: FOR couns € 1 To 6 TP purchased{count] > 0 THEM SINT count, ItemCode{count], Description [count], Priceicount] Se eae) TASK RM ON 2020 - 2: @ fer NO” TsenCode [count], Descriptiontcouns], Price [count UNTIL adazeenin porchased{adaT ven total @ total + sonal item PRESS ANY cagit & and FRESS 0 for WO END WEILE + perchasedicoune], Descziption{count], Feicefcoune] + total cP NESTA TASK 3 Einalfotal € total sdditensCount nalretal © otal

You might also like