In: Computer Science
You are tasked to code a software prototype of this feature in Java.
The system will be provided the course code, course name, CRN, the total number of students, course credit hours. The system should calculate and display the following statistics:
CODE IN JAVA:
Course.java file:
import java.util.Scanner;
public class Course {
public static void main(String[] args) {
// TODO Auto-generated method
stub
Scanner sc = new
Scanner(System.in);
System.out.print("Enter the course
code:");
String courseCode =
sc.nextLine();
System.out.print("Enter the course
name:");
String courseName =
sc.nextLine();
System.out.print("Enter the
CRN:");
String crn = sc.nextLine();
System.out.print("Enter the number
of students:");
int numberOfStudents =
sc.nextInt();
System.out.print("Enter the course
credit hours:");
int courseCreditHours =
sc.nextInt();
int totalHours =
numberOfStudents*courseCreditHours;
System.out.println("Total Student
credit hours:"+totalHours);
System.out.println("The FTE for the
course is:"+(totalHours/40.0));
System.out.println("The total
amount of tution generated for this course:
$"+(totalHours*350.12));
}
}
OUTPUT: