Program mimics a rudimentary spreadsheet

Assignment Help JAVA Programming
Reference no: EM13552132

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.

Reference no: EM13552132

Questions Cloud

How much work does the force do on the particle : A 2 kg particle is acted on by the constant force F=3Ni-4Nj and is displaced from the origin to position s=12mi+5mj, how much work does the force do on the particle
Examine the fundamental rationale behind corporations : Examine the fundamental rationale behind corporations
Find through how many revolutions does the tub turn : The tub of a washer goes into its spin-dry cycle, starting from rest and reaching an angular speed of 4.0 rev/s in 13.0 s. Through how many revolutions does the tub turn during this 25 s interval
Find the height of the satellite above the planets surface : A satellite in a circular orbit around the planet Glob-IV has an orbital period of 246 minutes. Find the height of the satellite above the planet's surface
Program mimics a rudimentary spreadsheet : Change the averages so that they are rounded to the nearest one hundredth. The example above shows averages in format - Change the program so that before the spreadsheet window is displayed, the user sees the window
Determine what maximum distance will it travel : a spring is compressed by 2cm and launches a block up an incline (ignore friction). what maximum distance will it travel
Vertical cylinder closed from both ends is equipped : A vertical cylinder closed from both ends is equipped with an easily moving piston dividing the volume in two parts, each containing 1 mole of air.In equilibrium at T=300K, the volume of the upper part is 4 times the volume in the lower part. At what..
What is the frequency of the rods vibration : A thin 1.7-m metal rod sustanins a longitudinal standing wave with vibration antinodes at each end of the rod. There are no other antinodes. What is the frequency of the rod's vibration
What is the mass of planet physics : While visiting Planet Physics, you toss a rock straight up at 13 m/s and catch it 2.3 s later. What is the mass of Planet Physics

Reviews

Write a Review

JAVA Programming Questions & Answers

  The commission employee inherits

The Commission Employee inherits from the Employee class. A Commission Employee contains a commission rate and a sales amount variable which are used as part of the pay calculation. An explicit value constructor should be provided to set all 3 val..

  Program obtaining the new scriptdownload and save the

program obtaining the new scriptdownload and save the attached comment cgi mailer script form-mail2.pl to your servers

  A program that reads a four-digit number from the keyb

Write a program that reads a four-digit number from the keyboard as a string and then converts it into decimal. For example, if the input is 1100, the output should be 12. Hint: Break the string into characters and then convert each character to a va..

  Specify, design, and implement a class

Specify, design, and implement a class that can be used in a program that simulates a combination lock. The lock has a circular knob with the numbers 0 through 39 marked on the edge, and it has a three-number combination, which we will call x,y,z.

  Write a java program to perform matrix multiplication

Write a java program to perform matrix multiplication - Your code will need to be able to read in these files, place the contents of each file into separate two-dimensional arrays and then perform the needed multiplication and place the output of t..

  String that contains at least five letters

Write an application that prompts the user for a String that contains at least five letters and at least five digits. Continuously reprompt the user until a valid String is entered. Display a message indicating whether the user was successful or did ..

  Problem on java progamming

Which parts of the assignment were you not able to complete fully? For each, explain why you were unable to complete this part and what steps you took to attempt to complete it.

  Create a web application for sheridan restaurant

Create a web application for Sheridan Restaurant Reviews that contains the following functionality - Display a table of all restaurants based on the city entered by the user

  Write a java program that (1) defines a base/super class a

Write a Java program that (1) Defines a base/super class A, a subclass B (inherits from A), and a subclass C (inherits from B). The A class must have a method f() which is not implemented in A,

  Write a program to test your class definition

Do not define an input method. The only method that can set the counter is the one that sets it to zero. Write a program to test your class definition.

  Create and code a program uses three parallel numeric array

Create and code a program that uses three parallel numeric arrays of size 6. The program searches one of the arrays and then displays the corresponding values from the other two arrays. The program should prompt the user to enter a ProductID. Valid P..

  Create a program that develops an amortization schedule

Create a program that develops an amortization schedule. Your program should be written as a Java applet.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd