₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,163 members, 8,510,467 topics. Date: Friday, 30 October 2026 at 12:44 PM

Toggle theme

Assembler, Help Please - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Assembler, Help Please (274 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
1 Reply

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

Effective Ways To Enhance Your Productivity Using Codeigniter • Help With Powershell Programming Assignment • How To Increase My Site Speed By Improving Page Load