everything attached

1 answer below »
Answered Same DayMar 29, 2021COIT11222Central Queensland University

Answer To: everything attached

Amit answered on Apr 02 2021
151 Votes
Ass1/Week1.java
Ass1/Week1.java
// Programmer: malkeet singh
// File: Week1.java
// Date: April 1 2019
// Purpose: COIT11222 assignment one question one T119
// Use println method to print initials using asterisks
import java.util.*;
public class Week1 
{
    public static voi
d 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("*            *  *        *");
        System.out.println("*            *  **********");
    }
}
Ass1/Week2.java
Ass1/Week2.java
// Programmer: malkeet singh
// File: Week2.java
// Date: April 1 2019
// Purpose: COIT11222 assignment second question T119
// Use scanner objets to take input from user. 
import java.util.Scanner;
public class Week2 {
    public static void main(String[] args) 
    {
        int numberOfGarments;
        double charge, chargePerGarment=8.50;
        String customerName;
        Scanner inText = new Scanner(System.in);
        System.out.println("Please enter the customer name   ==>");
        customerName= inText.nextLine();
        System.out.println("Enter the number of garments for " + customerName + " ==> ");
        numberOfGarments= inText.nextInt();
        System.out.println("");
        System.out.println("");
        System.out.println("---Receipt---");
        System.out.println("Customer name:" + customerName);
        System.out.println("Number of garments:" + numberOfGarments);
        charge= numberOfGarments*chargePerGarment;
        System.out.println("Total charge: $" + charge);
    }
}
Ass1/Week3.java
Ass1/Week3.java
// Programmer: malkeet singh
// File: Week3.java
// Date: April 1 2019
// Purpose: COIT11222 assignment third question T119
// Use if and else if conditions to make decisions.
import java.util.Scanner;
public class Week3 {
    public static void main(String[] args) 
    {
        int numberOfGarments;
        double charge, chargePerGarment=0.0;
        String customerName;
        Scanner inText = new Scanner(System.in);
        System.out.println("Please enter the customer name   ==>");
        customerName= inText.nextLine();
        System.out.println("Enter the number of...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here