Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Program mimics a rudimentary spreadsheet.

The particular spreadsheet in question is constructed with the following GUI. You will be graded to a large extent by how effectively you use arrays and loop processing of those arrays in your solution.

Spreadsheet is constructed from a nine by five grid of IntegerTextFields, labeled with rows numbered 1 through 9 and columns labeled A through E, as depicted to the right.

2312_spreadsheet.png

When the program begins to execute the user is expected to type in the white text fields. For this assignment we will restrict user input to two different options per text field:

1) a valid integer

2) a reference to a different spreadsheet cell so long as that cell contains an integer

The way to reference a different cell is to provide its column (an uppercase letter in the range 'A' through 'E') followed by a single digit in the range from 1 through 9. No blanks or other symbols are acceptable.

When the button (marked "Average rows and columns") is clicked then each row and each column is averaged and the resulting average is placed in the darker (cyan) text field. The picture above shows the result of clicking this button for the particular content shown.

For averaging purposes, the cells that reference other cells borrow the value of the referenced cell.

For instance, in the above example cell D4 contains the String E9. Therefore, whenever the D4 cell is used for averaging (namely averaging row 4 and column D) the value of this cell is treated as 100 because cell E9 contains 100. Any incorrect or empty cell is interpreted as containing zero.

For this 20-point assignment you can display the averages as truncated integers.

Change the averages so that they are rounded to the nearest one hundredth. The example above shows averages in this format.

Change the program so that before the spreadsheet window is displayed, the user sees the window:

1565_spreadsheet1.png

The user types integers into both fields, then hits a return key. Upon typing return in either text field your program must replace the initial window with a spreadsheet window like the one near the top of this page. Of course, this page must contain the specified number of rows and columns. You should restrict the number of rows to 1 though 9 and the number of columns to 1 through 26. As before, rows are numbered, beginning with one and columns lettered beginning with A. All cells behave as defined above. The online applet illustrates.

Java, Programming

  • Category:- Java
  • Reference No.:- M91089243

Have any Question?


Related Questions in Java

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assessment instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As