Assembler, Help Please - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Assembler, Help Please (253 Views)
1 Reply
| Assembler, Help Please by Xianders(op): 10:46am On Nov 05, 2021 |
In a 20-character feed, count the number of a characters A. |
| Re: Assembler, Help Please by Bahat: 5:02pm On Nov 05, 2021 |
Store the character feed into an array or list Parse through the list with a for loop Check the condition with if statement Store each occurrence into a separate list if need Then check the stored length field. Or count +=1 to every new occurrence Output total count as the number of occurrence Character_feed =[a,a,...] Count = 0 number_of_occurence = ‘A’ For (data in character_feed). // check to make sure list is not empty If(number_of_occurence in data) Count +=1 Else Move to the next data in list You can as well remove the else part. After the operation is done Output total count number. This should help |
I'm suffering from tutorial hell, I need help please!!? • Mysql Help:please I Need Help Transposing Row Into Column • Softwares Help Please • 2 • 3 • 4
What Services Are Provided By The Inbound Call Center? • Download Students Information System Using Visual Basic • I Build Affordable Websites