Skip to main content

You have been approached by the Statistics Canada to create a C# program to calculate the average salary of people with university degrees 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, and ‘H’ or ‘h’ for high school) and then a salary (double)

You have been approached by the Statistics Canada to create a C# program to calculate the average salary of people with university degrees 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, 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 two types should be printed out. Be sure to print an error message if the user enters an invalid type or a negative salary. Q4: Write a C# program to compute the charge for a motel room. This program is to use a method called RoomCharge with 2 formal parameters: the number of days (an int), and the type of room (a char representing ‘S’ or ‘s’ for single, or ‘D’ or ‘d’ for double). The method should compute the charge and return the value to the Main method. You can assume a single room is $100, and double room is $150. Be sure to add 13% HST for the government. All input is to be done from the main program. Your main program should also a contain a loop which allows the user to compute more than one room charge if they wish (the program should continue until the user enters a ‘N’ or ‘n’). The method header for should look like: public static double RoomCharge(int numDays, char roomType) Q5: Write a C# program to help balance your bank account (assume that the initial balance is 0). The main program should repetitively prompt the user to enter a transaction (char) which could be ‘c’ or ‘C’ for cheque, ‘d’ or ‘D’ for deposit, ‘p’ or ‘P’ for print, and ‘q’ or ‘Q’ for quit. Using a switch statement, select the appropriate action and call the method. The program is to have three user­defined methods: (i) A void method called Cheque which accepts one reference parameter of type double which contains the account balance. Cheque prompts the user for the amount of the cheque and then deducts the amount of the cheque from the balance. A $1 service charge is applied to each cheque. The cheque (and the service charge) should not be applied if it would leave a negative balance and the customer should be warned. The method header should look like: public static void Cheque(ref double balance) (iii) A void function called Deposit which also accepts one reference parameter of type double which stores the account balance. Deposit prompts the user for the amount of the deposit and then adds the amount of the deposit to the balance. The method header should look like: public static void Deposit(ref double balance) (iv) A void function called Print which takes one value parameter of type double which contains the balance and then prints it out. The method header should look like: public static void Print(double balance) The main program should continue until the user enters a ‘Q’ or ‘q’. - See more at: http://www.essaysclub.net/c-program-to-compute-salary-of-people-with-and-without-university-degrees-and-high-school-certificates/#sthash.rmLwRwHG.dpuf
CLICK HERE TO GET A PROFESSIONAL WRITER TO WORK ON THIS PAPER AND OTHER SIMILAR PAPERS, GET A NON PLAGIARIZED PAPER FROM OUR EXPERTS …

Comments

Popular posts from this blog

Identify and discuss a key milestone in the history of computers that interests you and why.

  Part 1Title: Lab ResponseDiscuss one feature of MS Word and one feature of MS Excel that you found challenging within the lab and why. Examples are WordArt, inserting shapes, adding borders, cell styles, etc. This response should be at least one paragraph in length. Part 2Title: History of Computers Identify and discuss a key milestone in the history of computers that interests you and why. This section should be at least one paragraph. Part 3Title: System Software vs. Application Software In your words, explain the difference between application software and system software as if to another coworker who has limited technical knowledge. Use examples to support your rationalization. This section should be at least two paragraphs. Part 4Title: Blockchain and Cryptocurrency In a minimum of one paragraph each: 1. Conduct some research on the internet and discuss one underlying technology of cryptocurrencies like blockchain, cryptography, distributed ledger technol...

Cybersecurity and Infrastructure Security (CISA)

 Develop a research paper that identifies a specific Department of Homeland Security (DHS) operating agency. Fully describe 1 DHS operating agency from the following list: Cybersecurity and Infrastructure Security (CISA) U.S. Customs and Border Protection (CBP) U.S. Citizenship and Immigration Services (USCIS) Federal Emergency Management Agency (FEMA) U.S. Coast Guard (USCG) U.S. Immigration and Customs Enforcement (ICE) U.S. Secret Service (USSS) Transportation Security Administration (TSA) The information must include a discussion of the selected DHS agency. Identify the agency’s mission, goals, objectives, and metrics. Conduct an analysis of how these mission areas address the threats or challenges. Recommend agency program priorities among the current set of goals, objectives, metrics, or budget items. Justification of all choices is an essential element of this assignment. Reference all source material and citations using APA format. WE OFF...

Discuss how the project

ord count : no idea 1. You are required to write a report on all project activities involved in all the 10 knowledge areas of project management for the entire project life cycle. You should also include a list of the respective PM documents, for example PM Plan, PM Quality Management Plan, Risk management, Procurement, etc. The report must include the activities that are considered before the project is closed out. 2. Discuss how the project quality management plan can provide adequate standards and controls in managing global teams in projects. Your discussion must provide adequate arguments for the need of cultural awareness and legal issues. Regards, The post Discuss how the project appeared first on My Assignment Tutor . Assignment status :  Resolved by our Writing Team Source@ PrimeWritersBay.com GET THIS PAPER COMPLETED FOR YOU FROM THE WRITING EXPERTS   CLICK HERE TO ORDER 100% ORIGINAL PAPERS AT PrimeWritersBay.com NO PLAGIARISM