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

Write an assembly program that prompts the user to enter a string of up to 100 c

ID: 3689843 • Letter: W

Question

Write an assembly program that prompts the user to enter a string of up to 100 characters (your program should ensure the input is sane and re-prompt if necessary). As the characters are received, store them in an array of BYTES (single characters). Once the input array has been populated, write a loop that iterates through the array and only writes back the vowels from the input string in their respective order. See the following examples for clarity:

INPUT: abcdef

OUTPUT: ae

INPUT: Here are some words.

OUTPUT: eeaeoeo

INPUT: This one has digits and stuff 49504. Some more text.

OUTPUT: ioeaiiauoeoee

INPUT: Lose symbols too #($*%(#. Like that...

OUTPUT: oeoooiea

INPUT: Big Letters Are Always Big

OUTPUT: ieeAeAai

In addition to displaying the mutated string on the screen, re-store the mutated series of vowels into a completely different array of BYTES.

Explanation / Answer

import java.io.*;

public class findvowel
{

public static void main(String[] args) throws IOException
{
String s;
char c;
int i,j,cnt;
cnt=0;
System.out.println(“Enter the String : “);
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
s=br.readLine();
for(i=0;i<=j;i++)
{
c=s.charAt(i);
if(c==’a’||c==’A’||c==’i’||c==’I’||c==’o’||c==’O’||c==’u’||c==’U’||c==’e’||c==’E’)
{
cnt++;
}
}
System.out.println(cnt);
}
}

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