REUPLOAD: I need to fill the program to its designated output I have inserted sample runs and the template of codes that will be used(?) Thank you! I TYPED DOWN THE CODE W/ THE PICTURE ATTACHED: import java. util. Formatter; import java. util. Scanner; public class Chupapi { private static Formatter output; public static void main (String[] args) throws Exception { output = new Formatter("output.txt"); Scanner in = new Scanner(System.in); } // This method has one parameter and will return the string with all uppercase characters. public static String toUpperCase(String str) { // This method has one parameter and will return the number of vowels in the string. public static int countVowels(String str) { int numvowels = 0; return numvowels; } // This method has one parameter and Witt return true if the string is o pot indrome, // fotse if the string is not o potindrome. public static boolean isPalindrome(String str){ boolean isReversible; return isReversible; } //This method hos three porometers and will display to screen the following: //OUTPUT Original string entered by user: //OUTPUT String in uppercose: //OUTPUT Number of vowels in the string: //OUTPUT Is string o potindrome? public static void displayData(String str, int numvowels, boolean isPalindrome){ System.out.println(""); System.out.println(""); System.out.println(""); System.out.println(""); } /* This method has three parameters and Witt write to text Fite the following: Original string entered by user: String in uppercase: Number of vowels in the string: Is string a polindrome? */ public static void writeToFile(String str, int numvowels, boolean isPalindrome) { System.out.println("Data was written to file."); } }
REUPLOAD: I need to fill the
I TYPED DOWN THE CODE W/ THE PICTURE ATTACHED:
import java. util. Formatter;
import java. util. Scanner;
public class Chupapi {
private static Formatter output;
public static void main (String[] args) throws Exception {
output = new Formatter("output.txt");
Scanner in = new Scanner(System.in);
}
// This method has one parameter and will return the string with all uppercase characters.
public static String toUpperCase(String str) {
// This method has one parameter and will return the number of vowels in the string.
public static int countVowels(String str) {
int numvowels = 0;
return numvowels;
}
// This method has one parameter and Witt return true if the string is o pot indrome,
// fotse if the string is not o potindrome.
public static boolean isPalindrome(String str){
boolean isReversible;
return isReversible;
}
//This method hos three porometers and will display to screen the following:
//OUTPUT Original string entered by user:
//OUTPUT String in uppercose:
//OUTPUT Number of vowels in the string:
//OUTPUT Is string o potindrome?
public static void displayData(String str, int numvowels, boolean isPalindrome){
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
}
/*
This method has three parameters and Witt write to text Fite the following:
Original string entered by user:
String in uppercase:
Number of vowels in the string:
Is string a polindrome?
*/
public static void writeToFile(String str, int numvowels, boolean isPalindrome) {
System.out.println("Data was written to file.");
}
}
Step by step
Solved in 4 steps with 3 images