Course Solutions Uncategorized (Solved) : Change Code Assembly Mips Mars Format Import Javautilscanner Public Class Test7 Public Sta Q32681439 . . . .

(Solved) : Change Code Assembly Mips Mars Format Import Javautilscanner Public Class Test7 Public Sta Q32681439 . . . .

 

change thiscode to Assembly MIPS MARS Format

importjava.util.Scanner;

public classTest7
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);

String input = sc.next();
  
int whiteSpaces = 0, digits = 0, lowerCase = 0, upperCase =0;
  
for(int i = 0; i < input.length();i++)
{
char temp = input.charAt(i);
if(Character.isDigit(temp))
{
digits++;
}
else if(Character.isLowerCase(temp))
{
lowerCase++;
}
else if(Character.isUpperCase(temp))
{
upperCase++;
}
else if(Character.isWhitespace(temp))
{
whiteSpaces++;
}
}
  
System.out.println(“WhiteSpaces : “+whiteSpaces+”n”+”Digits :”+digits+”n”+”LowerCase letters : “+lowerCase+”n”+”UpperCaseletters : “+upperCase);

}

}

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 2 Write Program Sort Array Size 200 Containing Integer Values Following Fashion Even Indic Q27623722 . . . .(Solved) : 2 Write Program Sort Array Size 200 Containing Integer Values Following Fashion Even Indic Q27623722 . . . .

raspberry pi using C programming language<br/><img src="https://media.cheggcdn.com/media%2Fb0c%2Fb0cd9b4a-8abf-48ca-b456-37de606531a6%2Fimage" alt="2) Write a program to sort an array of size 200 containing integer values in the following fashion: the even indices contain the