question archive Create Student Assessment application that prompts the user for the number of courses completed this school year and then prompts the user for the grade received in each course

Create Student Assessment application that prompts the user for the number of courses completed this school year and then prompts the user for the grade received in each course

Subject:Computer SciencePrice:2.84 Bought7

Create Student Assessment application that prompts the user for the number of courses completed this school year and then prompts the user for the grade received in each course. The Student Assessment application should then display the grades that qualify for a honours award (>90) on one line and grades that are below passing (<65) on the next line.

Statistics show that the letters E, S, A, and R are frequently the third letter in a word. Create Frequent Letters application that prompts the user for a word that is at least six characters in length and then determines whether third letter is one of the frequent third letters.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Answer Preview

AssessmentApp.java

 

import java.util.Scanner;


public class AssessmentApp {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.print("Please enter number of course complete : ");
		int completedCourses = sc.nextInt();
		int grades[] = new int[completedCourses];
		for(int i=0;i<completedCourses;i++)
		{
			System.out.print("Enter grade for couse "+(i+1)+": ");
			grades[i] = sc.nextInt();
		}
		System.out.print("Grades which are qualified honours award : ");
		for(int i=0;i<completedCourses;i++)
		{
			if(grades[i]>90){
			System.out.print(grades[i]+" ");
			}
		}
		System.out.println();
		
		System.out.print("Grades which are below passing marks : ");
		for(int i=0;i<completedCourses;i++)
		{
			if(grades[i]<65){
			System.out.print(grades[i]+" ");
			}
		}
		System.out.println();
		
	}


}

 

 

FrequentLetterApp.java

 

import java.util.Scanner;


public class FrequentLetterApp {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.print("Enter word with atleast 6 letters : ");
		String word = sc.nextLine();
		if(word.length()>=6)
		{
			char thirdChar = word.charAt(2);
			thirdChar = Character.toUpperCase(thirdChar);
			if(thirdChar == 'E' || thirdChar == 'S' || thirdChar == 'A' || thirdChar == 'R')
			{
				System.out.println("Yes, third letter is one of the frequent letters");
			}
			else
			{
				System.out.println("No, third letter in not one one of the frequent letters");
			}
		}
		else
		{
			System.out.println("Input word must be more than 6 character");
		}
	}


}


Step-by-step explanation

Please find the above two java application.

 

Please let me know if any issue.

Related Questions