Computer Science Homework Solutions

Java program:employee names, address and ph numbers and Cntrl + Z

I am looking for a java program that allows the user to create a file of employees, address, and phone numbers. Prompt the user to enter the filename, and then prompt the user to enter the employees names and their phone extension numbers. The user should press Control + Z after entering all of the data. The program then display ...continues

Java programming documentation help...

I have attached the program and I need documentation for the program. I am not good with explaining things into the code and making it look nice. Desired documentation would clearly and effectively document including descriptions of all variables. See attached program.

Buffer Overflow Attack

Need some help with the attached buffer overflow attack assignment. Here is a link with pertinent information: http://www.computerworld.com/action/article.do?command=viewArticleBasic&articleId=82921&intsrc=article_pots_bot In the foo function pushing 43 A's for example will cause the buffer to overflow.

Developing Java applications for Eclipse LAB 4

Developing Java applications for Eclipse LAB 4. See attached file for full problem description.

Use pseudo-code to write the ATM machine and then design the test cases

Read the article: Test Infected: Programmers Love Writing Tests at http://junit.sourceforge.net/doc/testinfected/testing.htm. Now assume that one has to design an ATM machine object using Java (C or C++) with the following functionalities: check balance, deposit cash, and withdraw cash. Our project is to design a JUnit (CUnit or ...continues

Programming in Java II - Two common attributes of a person are the person’s first name and last name.

Please see attached file for full problem description. Example 1-1: Two common attributes of a person are the person’s first name and last name. The typical operations on a person’s name are to set the name and print the name. The following statements define a class with these properties. public class Person { priva ...continues

Programming in Java II

Question #1: Develop and execute a program for this exercise. Write a program that prompts the user to enter the length in feet and inches and outputs the equivalent length in centimeters. If the user enters a negative number or a nondigit number, throw and handle an appropriate exception and prompt the user to enter another se ...continues

Programming in Java II

Question #1: Develop a program that prompts the user to guess the outcome of a die throw. Then throw a die (using a random number generator) and inform the user if they guessed the correct outcome. Count the number of correct guesses. Develop the program using a separate class for the die. Your program should contain two separat ...continues

Programming in Java II - Develop a program that plays "Five Card Stud".

CSC 212 – Homework #6 Develop a program that plays "Five Card Stud". The user plays agains the computer. The program will "deal" five cards to the user and itself. Whoever has the highest hand wins. Inform the user who has won that hand, and ask if the user wants to play again. Interaction is as follows: Your hand is: 2 o ...continues

Java Program - Clock

I've attached the problems so please download the file. Thanks! Please see attached file for full problem description. Develop and execute programs for this exercise. Submit your results to COL. 1. In the example 1-1, the class Clock was designed to implement the time of day in a program. Certain applications, in additi ...continues

Browse