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

Should pit bull terriers be banned in my community

 Discussion Forum: Counterarguments (Should pit bull terriers be banned in my community) You created a question about the topic for your W6 Rough Draft. For this discussion, you will give an answer to that question in the form of a thesis statement. "Dieting Makes People Fat" Main Post: Share your thesis statement with your classmates. Please note: As with last week’s discussion, nothing here is set in stone. Be open to changing everything about your topic, including your position and audience, as you research it and get feedback from your classmates. Topic + Position/Purpose + Supporting Points =Thesis Statement Example: Suppose the question you posed in the Week 5 discussion was something like, “Should pit bull terriers be banned in my community?” After doing some preliminary research, you have concluded that pit bulls, if raised properly, are no more dangerous than other breeds of dogs. Your thesis statement can be something like, “Pitbulls should not be banned

CYBER SECURITY and how it can impact today's healthcare system and the future

 Start by reading and following these instructions: Create your Assignment submission and be sure to cite your sources, use APA style as required, and check your spelling. Assignment: Recommendations Document Due Week 6 (100 pts) Main Assignment Recommendations Document The 1250 to 1500-word deliverable for this week is an initial draft of your recommendations. Note that this is a working document and may be modified based on insights gained in module eight and your professor's feedback. This document should contain the following elements: Summary of your problem or opportunity definition A list of possible recommendation alternatives. In this section, you are not yet at the point of suggesting the best set of recommendations but you are trying to be creative and explore all the different ways that the problem or opportunity might best be addressed. The end result here will be a list of alternatives among which you will choose your final recom

Do violent video games encourage players to become violent in real life?

 Write an outline for Speech 3, the persuasive belief speech, following the outline guidelines and formatting requirements (Do violent video games encourage players to become violent in real life?).  1000-1200 WORDS https://virtualspeech.com/blog/persuasive-speech-outline-structure-delivery Topics: https://blog.prepscholar.com/good-persuasive-speech-topics Do violent video games encourage players to become violent in real life? https://www.youtube.com/watch?v=YKKWOx43pIY WE HAVE DONE THIS ASSIGNMENT BEFORE, WE CAN ALSO DO IT FOR YOU GET SOLUTION FOR THIS ASSIGNMENT,  Get Impressive Scores in Your Class CLICK HERE TO MAKE YOUR ORDER   on Do violent video games encourage players to become violent in real life? Are You looking for Assignment and Homework Writing help?  We Provide High-Quality Academic Papers at Affordable Rates. No Plagiarism. TO BE RE-WRITTEN FROM THE SCRATCH