Get Instant Help From 5000+ Experts For

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
IS111 Introduction to Programming

Question 1 (25 Marks)

Write a program that takes a command-line argument N and prints an N-by-N triangular pattern like the one below.

N-by-N triangular pattern

Question 2 (25 Marks)

Implement a class called Account which defines a modified banking account that can be created with a given balance and account name. It must be able to perform the following operations in the public interface:

  • Accepts an amount to deposit the balance
  • Withdraws an amount from the balance
  • Returns its balance
  • Returns its name
  • Displays its name and balance

Write a Java application called AccountSystem to simulate an instance of the class. You need to use deposit and withdrawal methods in this program.

deposit and withdrawal methods

Question 3 (25 Marks)

Write a program to create the applet as shown below. The applet uses a paint method that draws steps based on an integer the user inputs via input dialog.

input dialog

Question 4 (25 Marks)

Write a program called GradesAverage, which prompts user for the number of students, reads it from the keyboard, and saves it in an int variable called numStudents. It then prompts user for the grades of each of the students and saves them in an int array called grades. Your program shall check that the grade is between 0 and 100.

sample sesssion

sales chat
sales chat