
File read write and string manipulation
data1.txt(down below)
4,5-t 2,4-d 20-p7int 2D 2nd 2 1080 &c 10-p7int 10th 11-p7int 12-p7int 16-p7int 18-p7int 1st 2,4,5-t 2,4-d 20-p7int 2D 2nd 30-30 3D 3-D 3M 3rd 48-p7int 4-D 4GL 4H 4th 5-p7int 5-T 5th 6-p7int 6th 7-p7int 7th 8-p7int 8th 9-p7int 9th @ @' @- @&M @&P @. @.@.@. @.B. @.B.@. @.C. @.D. @.D.C. @.F. @.F.@.M. @.G. @.H. @.I. @.I.@. @.I.D. @.L. @.L.P. @.M. @.M.@. @.M.D.G. @.N. @.p. @.r. @.R.C.S. @.U. @.U.C. @.V. @.w. @.W.O.L. @/C @/F j54rs54y54d J54rs54yit54 j54rs54yit54s J54rs54ym@n j54rs54ys j54rs54y's J54rs54yvill54 j54rt J54rubb@@l J54rubb@l J54rus@l54m J54rus@l54mit54 j54rvi@ j54rvin j54rvin@ j54rvin54 J54rvis J54rk J54S J54sh J54sh54r J54smin54 j54sp54r J54sp54rs54n J54ss J54ss@ J54ss@b54ll j54ss@k5454d J54ss@lin J54ss@lyn j54ss@my j54ss@mi54s J54ss@myn J54ss@min54 j54ss@nt J54ss54 J54ss54@n j54ss54d J54ss5454 J54ss54y J54ss54lyn J54ss54lt7n J54ss54n j54ss54s J54ssi J54ssy J54ssic@ J54ssi54 kikkl54 kikkl54d kikkl54s kikkling kykk7g54t7n kK kkinth7s kl kl@t7ust kl7t54 kl7ty kl7tych fl7ti54s fl7tys fMRI fmudf fn fn@ni54cki f7 f7- f7@ f7@cum f7@54@ f7@n f7@nth@c54@ f7@nth@c54@n f7@nth@ri@ f7@nth@ri@n f7@nthid f7@nthid@54 f7@nthid54@ f7@nth7d54m54 n7@nth7d54mic n7@nth7id n7@nthr7py n7@nthus n7@r n7@r@ n7@r@h n7@rc54s n7@rcid@54 n7@ri@ n7@ri@l n7@rit54 r7@rium Greek r7b54 r7bi@s r7bkiw r7b7 r7bt54nit54 r7c@l7 r7cc7 r7cc7l7 Coffee r7di@c r7di@c@l r7di@cs r7di7phil7us r754 r754@ r754@54 r754@f7rm r754@l grapes r754f7rm r754h54m54r@ r754h54m54r@54 Z754ll54r Z754llick Z75 &data7 @hpouse9 R3ed #result r754tr7p54 r754tr7pic Z7ff@ny r7ftig r7g@n r7g7 battle battle-ax battle-axe Battleboro battler angle ant, apple arch arm army baby bag, ball band basin bed bee, bell berry bird trousers Bazil Bazin Bazine Baziotes B#zluke b#zoo b#zook# Z7h@ Z7h@k Z7h@r Z7h@r@ Z7h@r$st Z7h@r$t54 Z7$ r7$@tr$@ r7$@tr$cs r7$c r7$d d7$d$7ph$l7us d7$d7g@m7us Z7$54 Z7$l@ Z7$l54@n Z7$l$sm Z7$l$st Z7$ll@ Z7$lus Z7ys$@ d7ys$@s d7$s$t54 d7$s$t54s d7isitid@ti7n d7ism d7ist d7istic d7k7r Z7l@ Z7l@54squ54 Z7l@ism Z7l@ist Z7l@istic Z7l@id54 Z7ldi d7ll d7ll54 Z7ll54r Z7ll54rni@ Z7lly Z7lli54


Step by stepSolved in 4 steps with 2 images

- Submission (1) Convert the following pseudo code into assembly code. ( 7/' represents comments) // Each element is 1 Byte long // Each element is 1 Byte long arrayl 13h, 14h, 15h, 16h array2 12h, 13h, 14h, 15h // lengthl is a Symbolic constant // length2 is a Symbolic constant // this variable is 1 byte long initialized with 30 lengthl = number of items in Arrayl. length2 = number of items in Array2 samplel = 30h sample2 = 5h. // this variable is 1 byte long 1 byte long variable max of lengthl and length2. // maxlength is // this is a variable initialized with 0 maxlength = index = 0. While ( index array2[index] expl = (arrayl[index] * samplel) / (array2 [index] 1,1, only store the quotient of the division in expl and expl is Sample2) 16 bit long variable else expl = 0 index = index + 1 }arrow_forwardORG S0000 NUM1 DB $48 NUM2 DB $78 SUM DS 1 *CODE SEGMENT ORG $1000 LDAA NUM1 ADDA NUM2 STAA SUM PC value after execution of this code is type your answer.arrow_forwardAdd comments for Program 04arrow_forward
- Given: string s; int first, last; Write code to repeatedly validate that first is less than last and both first and last are valid indexes of the string s. Then print all characters of the string s from index first to last inclusive. Example Output 1 Enter a string and two indexes: Queensborough 25 eens Example Output 2 Enter a string and two indexes: Science 2 10 Enter a string and two indexes: Science -15 Enter a string and two indexes: Science 2 4 ienarrow_forwardTRUE OR FALSE // C PROGRAMMING LANGUAGE When a file opened for writing already exist its contents would be over writtenarrow_forwardWrite f95 code for storing values from 1 to 5, 5 times each and display them. Use appropriate storage structure accordingly.arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY





