
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Program 4: Due 3/ Extend program 3 to allow โsmartโ copying of cells across rows or columns. For this, you must support two types of cell addresses: relative and absolute. An absolute cell address has either the column or the row (or both) start with the โ$โ symbol. Thus, valid absolute cell addresses are โ$A1โ, โA$1โ, and โ$A$1โ. Relative cell addresses do not contain the โ$โ symbol. To copy a formula from one cell to an adjacent cell, you first click on the cell to select it, then click-and-drag to the adjacent cell. The value of the initial cell is unchanged. The value of the target cell(s) is a copy of the value in the initial cell. If the initial cell contains a constant, the constant is copied. If the initial cell contains a formula, the formula is copied. If the copy is across columns (e.g., from A1 to B1), the cell addresses in the copied formula are incremented, unless the columns of the cell addresses are absolute. Thus, when the formula โ =$a2 + b3 + c$4โ is copied from A0 to B0, the value in B0 becomes: โ$a2 + c3 + d$4โ. When the formula โ =$a2 + b3 + c$4โ is copied from A0 to A1, the formula in A1 becomes โ =$a3 + b4 + c$4โ. For this program, you must use the JTest testing framework to test the units of your software. You must demonstrate that you achieve at least 75% statement coverage for your code using JTest. You will turn in your testing software as well as your working applet. Your program must read an initial file. Your program must correctly evaluate the value of cells. Your program must allow formulas to reference other cells.