Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please post entire code. It has to be in assembly. I\'m using irvine.32 Write a

ID: 3572140 • Letter: P

Question

Please post entire code. It has to be in assembly. I'm using irvine.32

Write a program all written in assembly that inputs an entire line of text, up to 132 characters, into a buffer. Then have your program determine how many time each letter of the alphabet occurs You are to count all letters a-z, A-Z, and 0-9 only Your screen output is to look similar to a - 6 times b - 3 times c - 5 times etc, Only display the letters you are counting. You will declare the a input buffer called Charlnput (i.e. array) and write the code to count the number of a's that occur, b's, etc and then display them. You will have another buffer CharCount that will hold the char accounts. You could have 3 program loops that address each of the 3 groups of alphanumeric characters (a-z, A-Z, and 0-9)

Explanation / Answer

code in c++

#include <bits/stdc++.h>
using namespace std;

int main()
{
int i;
   string CharInput;
   cin>>CharInput;
   int CharCount[123];
   for(i=0;i<123;i++)
CharCount[i]=0;
for(i=0;i<CharInput.size();i++)
CharCount[CharInput[i]]++;
for(i=97;i<=122;i++)
{
char c=(char)i;
cout<<c<<" - "<<CharCount[i]<<" times"<<endl;
}
for(i=65;i<=90;i++)
{
char c=(char)i;
cout<<c<<" - "<<CharCount[i]<<" times"<<endl;
}
for(i=48;i<=57;i++)
{
char c=(char)i;
cout<<c<<" - "<<CharCount[i]<<" times"<<endl;
}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote