Last month Joe purchased some stock in Acme Software, Inc. Here are the details of the purchase:
Two weeks later Joe sold the stock. Here are the details of the sale:
Write a program that displays the following information:
Write a program that use Nested Loop to collect data and calculate the average rainfall over a period of years. First the program should ask for the number of years. The outer loop will iterate once for each year. The inner loop will iterate 12 times, once for each month. Each iteration of the inner loop will ask the user for the inches of rainfall for that month. After all iterations, the program should display the number of months, the total inches of rainfall, the average rainfall per month for the entire period. Input Validation: Do not accept a number less than 1 for the number of years, do not accept negative numbers for the monthly rainfall.
Write a program that lets the user enter four quarterly sales figures for six divisions of a company. The figures should be stored in a two-dimensional array. Once the figures are entered, the program should display the following data for each quarter:
Input Validation: Do not accept negative numbers for sales figures.
Write a program that has two parallel arrays of String objects. One of the arrays should hold people's names and the other should hold their phone numbers.
Here are example contents of both arrays:
name Array Example Contents
"Harrison, Rose" "James, Jean" "Smith, William" "Smith, Brad"
phone Array Example Contents
"555-2234" "555-9098" "555-1785"
"555-9224"
The program should ask the user to enter a name or the first few characters of a name to search for in the array. The program should display all of the names that match the user's input and their corresponding phone numbers. For example, if the user enters "Smith", the program should display the following names and phone numbers from the list:
Smith, William: 555-1785 Smith, Brad: 555-9224