C# COIS1020H Question 3 Statistics Canada to create a C# program to calculate the

Feb 3rd, 2012
Studypool Tutor
Trent University
Price: $15 USD

Tutor description

Q3: You have been approached by the Statistics Canada to create a C# program to calculate the average salary of people with university degrees, people with college diplomas, and people with no postsecondary education. For each person processed, the program must input an education type (char) first (‘U’ or ‘u’ for university degrees, ‘C’ or ‘c’ for college diplomas, and ‘H’ or ‘h’ for high school) and then a salary (double). The program stops accepting input when the user enters a ‘Q’ or ‘q’ for quit. The averages for each of the three types should be printed out. Be sure to print an error message if the user enters an invalid type or a negative salary.

Word Count: 185
Showing Page: 1/2
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace CSAvgSalary{ class Program { static void Main(string[] args) { char type = ' '; double[] avg= {0, 0, 0}; int[] count = {0, 0, 0}; Console.WriteLine("Statistics Canada - Average Salary Calculator"); Console.WriteLine(); while (type != 'Q' || type != 'q') { Console.Write("Education type \n\tuniversity - 'U' or 'u' \n\tcollege

Review from student

Studypool Student
" Outstanding Job!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1821 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors