Computer Science Homework Solutions

Week four mortgage calculator program using Java JDK 1.5.0

Is this a correct compilation for this program modification? I also need comments throughout the code aswell. The code below should Modify the mortgage program to display 3 mortgage loans: 7 year at 5.35%, 15 year at 5.5 %, and 30 year at 5.75%. Use an array for the different loans (the array will be needed in the next course). ...continues

Some Important Computer Programming Questions

1) A(n) ______ is a short on-screen note associated with the object to which a user is pointing A) maximize button(B) dialog box (C) icon (D) Tooltip 2) In windox XP, the ____ is used to create a new user change or remove and existing user, and change user information. A) Desk top (B) control panel (C) my document window ( ...continues

Computer Programming M/C Questions

1) Greater then (>), less than (<) and less than or equal to (<=) are all _____operations. A) text (B) arithmetic (C) comparison (D) sort by 2) A _____ allows entry of only one record at a time. A) datasheets (B) forms (C) query (D) macro 3) One of the PowerPoint wizards, the ______ gives prompts for the type of slides s ...continues

Coding for Excel

I am trying to write code that would sum 5 cells and then round to either .00, .25, .50, or .75 depending upon what range the sum of the cells falls into. Example if the sum of the cells equals 1.17 then I would need to round to 1.25. If the sum of the cell equals 15.38 I would need it to round to 15.50. So if the range of the d ...continues

Events and GUI and how they might be related.

Describe what an event is and how events and Graphical User Interfaces (GUI) are related.

9 button frame based application

Create a Frame-based application that displays an array of nine buttons on a Panel. Assign the Panel to the Center of your frame. Each button should display the name of a course in your department. Include a TextField in the South. When the user clicks a button, the course name should display in the TextField. There should be a ...continues

Payroll Swing Applet - CalcPay

Create a payroll Swing applet named CalcPay that allows the user to enter two double values—hours worked, and an hourly rate. When the user clicks a JButton, gross pay is calculated. There is another JButton for clicking so that federal withholding tax is subtracted from gross pay based on the following table: Income $ ...continues

Describe how class diagrams can be used to document the structure of a Java program.

Based on Guéhéneuc (2004) article (attached), describe how class diagrams can be used to document the structure of a Java program. What are some other models a programmer may need to fully understand the interaction between the various classes/objects in a Java program? What is the impact of not having diagrams that describe the ...continues

HTML file to run program

This applet program needs an html file to run. You should supply the file along with the program so that the reader can test it. import java.applet.*; import java.awt.*; public class DrawRectangles extends Applet { int width, height; public void init() { width = getSize().width; height = getSi ...continues

Java Programming

I need the size of the frame to be set a little bit larger than its content, which is a label. Also, the location could be set so that it could be appeared not at the upper left corner of the screen. And we can set the foreground and background color of the label. import javax.swing.*; import java.util.*; public ...continues

Browse