Computer Science 1 : Java Programming
Dr. David Cline
Program 4: Morse Code
Morse code represents letters and numbers using two symbols (dots and dashes), with a space between
encodings of letters. In this assignment, you will convert messages to and from morse code.
Things you will learn
• Input and output redirection
• Working in multiple modes based on command line arguments
• Reading input and formatting output.
• Extracting characters from an input file
4. Write a program that allows user to convert Celsius to Fahrenheit. Displays the output of Celsius to Fahrenheit in a table. Entries in the table should range from 10 to 100 degrees Celsius with increments of 2 degrees.
• The formula f= (9/5 * c) + 32 converts Celsius to Fahrenheit.
The result format should have one decimal place. Example 3.3 @ 4.5
3. Write a class that contains variables that hold your hourly rate of pay and the number of hours that you worked. Display your gross pay, your tax please refer in the table below and your net pay (gross pay – tax).
1. The following steps calculate the percentage profit from the sale of a stock. Convert the statements below to java code.
(a) Declare all variables as type Double.
(b) Ask user to input purchasePrice.
(c) Ask user to input sellingPrice.
(d) Assign, to the variable percentProfit, 100 times the value of the difference between sellingPrice and purchasePrice divided by purchasePrice.
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!