its due date is 26april 2019

1 answer below »
its due date is 26april 2019
Answered Same DayApr 24, 2021COIT11222Central Queensland University

Answer To: its due date is 26april 2019

Aditi answered on Apr 25 2021
149 Votes
Solution/Week1.java
Solution/Week1.java
// Programmer: Taranjeet kaur S12111019
// File: Week1.java
// Date: April 25 2019
// Purpose: COIT11222 assignment one question one T119
// Use println method to print initials 
using asterisks
public class Week1 {
    public static void main(String[] args) {

        System.out.println("*********** *       *");
        System.out.println("     *      *      * ");
        System.out.println("     *      *     *  ");
        System.out.println("     *      *    *   ");
        System.out.println("     *      *   *    ");
        System.out.println("     *      *  *     ");
        System.out.println("     *      * *      ");
        System.out.println("     *      *  *     ");
        System.out.println("     *      *   *    ");
        System.out.println("     *      *    *   ");
        System.out.println("     *      *     *  ");
        System.out.println("     *      *      * ");
        System.out.println("     *      *       *");
    }

}
Solution/Week2.java
Solution/Week2.java
// Programmer: Taranjeet kaur S12111019
// File: Week2.java
// Date: April 25 2019
// Purpose: COIT11222 assignment one question one T119
// Input of data types and arithmetic expressions
import java.util.Scanner;
public class Week2 {

    public static void main(String[] args) {
        final double CHARGE_PER_GARMENT = 8.50;

        Scanner inText = new Scanner(System.in);
        Scanner inNumber = new Scanner(System.in);

        System.out.print("Please enter the customer name ==> ");
        String customerName = inText.nextLine();

        System.out.print("\nEnter the number of garments for " + customerName + " ==> ");
        int numberGarments = inNumber.nextInt();

        double charge = numberGarments * CHARGE_PER_GARMENT;

        System.out.println("\n --- Receipt---");
        System.out.println("Customer Name: " + customerName);
        System.out.println("Number of garments: " + numberGarments);
        System.out.printf("Total Charge: $%.2f", charge);

    }
}
Solution/Week3.java
Solution/Week3.java
// Programmer: Taranjeet kaur S12111019
/...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here