Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment Objectives: *To distinguish exception types: checked vs. unchecked. The type of exception used in this assignment is checked. To read data from the Web

image text in transcribed

Assignment Objectives: *To distinguish exception types: checked vs. unchecked. The type of exception used in this assignment is checked. To read data from the Web To read data from a file using the Scanner class To understand how data is read usin g a Scanner . . Problem Description: A university posts its employees' salaries at http://cs.armstrong.edu/liang/data/Salary.txt Each line in the file consists of a faculty member's first name, last name, rank, and salary Write a program to display the total salary for assistant professors, associate professors, full professors, and faculty (all professors), respectively, and display the average salary for assistant professors, associate professors, full professors, and faculty (all professors), respectively as well as write these displayed information to a file named "Salaries Su txt" Note: Your program needs to access the file directly from the Website (don't download it) Sample Run Total salary for assistant professor is 20246511.91 Total salary for associate professor is 28844146.5d8 Total salary for full professor is 35678051.41 Total salaryfor all professors is 84768709.90 Average salary for assistant professor is 65949.55 Average salary for associate professor is 83849.26 Average salary for full professor is 102229.37 Average salary for all professors is 84768.71 Salaries_Summary - Notepad File Edit Format View Help otal salary for assistant professor is 2.02465119100000187 Total salary for associate professor is 2.8844146580000006E7 Total salary for full professor is 3.567805140999998E7 Total salary for all professors is 8.476870989999995E7 Average salary for assistant professor is 65949.55019543978 Average salary for associate professor is 83849.2633139535 Average salary for full professor is 102229.37366762172 Average salary for all professors is 84768.70989999994

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions