1. You are required to provide (i) Algorithm
(Flowchart or Pseudocode) and (ii) Java program for each of the following problems.
II. Read 10 integers and find the total of even number and odd number entered.
III. Read 10 integers and find the total of positive number and negative number.
IV. Write a program that prompts the user to enter the number of students and each student's name and score, and finally displays the student with the highest score.
2. Write method headers for the
following methods:
- Computing a sales commission,
given the sales amount and the commission rate.
- Printing the calendar for a
month, given the month and year.
- Computing a square root.
- Testing whether a number is even, and returning true if it is.
- Printing a message a specified number of times.
- Computing the monthly payment,
given the loan amount, number of years, and annual interest rate.
- Finding the corresponding
uppercase letter, given a lowercase letter.
Sales
Amount Commission Rate
$0.01–$5,000 8 percent
$5,000.01–$10,000 10 percent
$10,000.01 and above 12 percent
No comments:
Post a Comment