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

Write a Java program that meets the following requirements:- Display your name,

ID: 3603226 • Letter: W

Question

Write a Java program that meets the following requirements:-

Display your name, major and expected graduation date. Use the appropriate labels for each item e.g. My name is Valerie Display individually the cost of your tuition and books for this semester. Perform an arithmetic statement that adds your semester costs. Display your semester cost. Divide your semester cost by the number of credits taken. Display the cost of tuition and books for each credit Display one reason you are taking this course.

Create appropriate variables for the data.

At the beginning of the program add the following comments. See section 1.7 of eBook for comments

//Filename //Written by

//Written on

//Assignment number

//Program description – state what the program does

Purpose: Create a java program from detailed directions.

Ability to: Prove you have successfully installed java by creating and compiling a new java program Follow established programming conventions for writing java programs Use the print statement for output Use the proper arithmetic statements to calculate semester costs

Explanation / Answer

//Filename //Written by

//Written on

//Assignment number

//Program description – This program calculates my total semester fees and cost of tution and book per credit

class Test

{

public static void main (String[] args)

{

String name = "Valerie";

String major = "CSE";

String graduationDate = "September 25,2019";

//Display your name, major and expected graduation date.

System.out.println("My name is "+name);

System.out.println("I am studying my major in "+major);

System.out.println("My expected graduation date is "+graduationDate);

//Display individually the cost of your tuition and books for this semester.

double tutionCost = 5667;

double booksCost = 1000;

//Perform an arithmetic statement that adds your semester costs.

double semesterCost = tutionCost + booksCost;

//Display your semester cost.

System.out.println("My semester cost : $"+semesterCost);

int creditsTaken = 20;

//Divide your semester cost by the number of credits taken.

double tutionCostCredit = tutionCost/creditsTaken;

double booksCostCredit = booksCost/creditsTaken;

//Display the cost of tuition and books for each credit

System.out.println("Cost of tution for each credit : $"+tutionCostCredit);

System.out.println("Cost of books for each credit : $"+booksCostCredit);

//Display one reason you are taking this course.

System.out.println("I am taking "+major +" as it is my favourite subject");

}

}

Output:

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