COSC 135 B Programming Assignment 2
Due Tuesday 9-26-00

You may work with one partner on this assignment and turn in one copy of your team's work.

  1. In a file named WinningPercent.java, write a program that allows the user to enter the number of wins and the total number of games played by a sports team and reports the teams winning percentage. The winning percentage is the number of wins divided by the total number of games played, rounded to three decimal places. You MUST use a TextArea to display the winning percentage (to three decimal places).
  2. The local bookstore has a markup of 10% on each book sold. Write a program called Bookstore.java that takes the sales price of a book as input and displays the following outputs:
  3. The output can be displayed either in fields or in a messageBox. Note that the sales price of a book is simply the markup amount plus the wholesale amount, and that 10% of the sales price is NOT the same as the markup amount.