Sale!

CSC150 Assignment 2 solved

$30.00 $18.00

Original Work ?

Download Details:

  • Name: AssignmentTwo-lkbsyy.zip
  • Type: zip
  • Size: 55.22 KB

Category: Tag: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (1 vote)

Write a Java program to calculate the profit of the East Coast division of a company based on a given percentage of total sales.

Instructions:

  1. Declare the value 0.62 to represent 62 percent and save it to a variable.
  2. Save the total sales in a variable.

To start the assignment:

  • Open Eclipse IDE and create a new Java project named Assignment2.
  • Add a class named SalesPrediction to the project.
  • Copy the provided program from the document and paste it into Eclipse.

Provided code template:

/*
    CS125
    Assignment 2
    <name>
    <your name>
*/

public class SalesPrediction {
    public static void main(String[] args) {
        // your code
    }
} // end of class SalesPrediction

Sample session: “The East Coast division will generate $23200000 if the company makes $40000000 in sales this year (62%).”

Notes:

  1. The program must compile without syntax errors; otherwise, 50% of the assignment points will be deducted.
  2. To get full credit, the program must meet the assignment requirements.
  3. Proper comments are required in the code.
  4. The beginning of the file should be a block comment containing the student’s name, course, and assignment number.
  5. Follow the programming style and guidelines discussed in class, including meaningful names for variables and clear code construction.