Consider the following problems, design the algorithms that would solve them, and then implement the algorithm in Java.
You are free to choose between writing pseudo-code or drawing flowcharts. Make sure to include screenshots of your running programs. You can take screenshots using PrintScreen of the console window in which you run the program. Put your algorithm and the screenshots together in a Word document.
Problem 1:
Write a program that reads the ages of three persons from the user, and decides who is the oldest, and who the youngest person is.
Problem 2:
Write a program that reads in the name and salary of an employee. Here the salary will denote an hourly wage, such as $9.25. Then ask how many hours the employee worked in the past week. Be sure to accept fractional hours. Compute the pay. Any overtime work (over 40 hours per week) is paid at 150 percent of the regular wage. Print a paycheck for the employee.
Problem 3:
The original US income tax of 1913 was quite simple. The tax was:
1 percent on the first $50,000
2 percent on the amount over $50,000 up to $75,000
3 percent on the amount over $75,000 up to $100,000
4 percent on the amount over $100,000 up to $250,000
5 percent on the amount over $250,000 up to $500,000
6 percent on the amount over $500,000.
priest — he refuses all of these titles in the name of creativity. Stephen’s ancient namesake did much the same, rejecting the classical society of ancient Greece, and opting for a more unconventional life as an artist (Brandabur 161). Stephen’s spiritual struggle is one involving the acceptance or rejection of this ordered other world (Farrell 207).
Stephen’s rebellion is directed against numerous opponents. One is his father, Simon Dedalus. As Stephen discovers that his father is a drunken, ineffectual failure, much in contrast to the Daedalus of myth, he rejects his authority:
Stephen watched the three glasses being raised from the counter as his father and two of his cronies drank to the memory of their past. An abyss of fortune or temperament sundered him from them. His mind seemed older than theirs: it shone coldly on their strifes and happiness and regrets like a moon upon a younger earth. No life or youth stirred in him as it had stirred in them. He had known neither the pleasure of companionship with others nor the vigour of rude male health nor filial piety.
(Joyce 89)
Even though Stephen may envy his father somewhat, he is constantly trying to prevent himself from accepting even the most casual and insignificant suggestions of his companions and his environment (Peake 78).
Stephen also rejects the bonds of a religion that restricts his natural impulses. From the beginning, the consciousness of Stephen Dedalus is dominated by the presence of the church and its priests (Adams 235). Catholicism imposes a burden of guilt that weighs him down. He must “admit” and “confess” a