Write a c# program that declares variables

Assignment Help DOT NET Programming
Reference no: EM13762961

1. Write a C# program that declares variables to represent the length and width of a room in feet. Assign appropriate values to the variables, such as length = 15 and width = 25. Compute and display the floor space of the room in square feet (area = length * width). As output, do not display only a value; instead, display explanatory text with the value, such as The floor space is 375 square feet.

Save the program as Room.cs.

2. Write a program that prompts the user for a name, Social Security number, hourly pay rate, and number of hours worked. In an attractive format (similar to Figure 2-24), dis-play all the input data as well as the following

» Gross pay, defined as hourly pay rate times hours worked

» Federal withholding tax, defined as 15% of the gross pay

» State withholding tax, defined as 5% of the gross pay

» Net pay, defined as gross pay minus taxes

Save the program as Payroll.cs.

3. Write a program that prompts a user for an hourly pay rate. If the user enters values less than $5.65 or greater than $49.99, prompt the user again. If the user enters an invalid value again, display an appropriate error message. If the user enters a valid value on either the first or second attempt, display the pay rate as well as the weekly rate, which is calculated as 40 times the hourly rate. Save the program as EnsureValidPayRate.cs.

4. Write a program that allows the user to enter two integers and a character. If the character is A, add the two integers. If it is S, subtract the second integer from the first. If it is M, multiply the integers. Display the results of the arithmetic. Save the file as Calculate.cs.

5. Write a program that allows the user to enter any number of integer values continuously (in any order) until the user enters 999. Display the sum of the values entered, not including 999. Save the file as Sum.cs.

6. Three salespeople work at Sunshine Hot Tubs-Andrea, Brittany, and Eric. Write a program that prompts the user for a salesperson's initial (‘A', ‘B', or ‘E'). While the user does not type ‘Z', continue by prompting for the amount of a sale the salesperson

7. Write a program containing an array that holds five integers. Assign values to the integers. Display the integers from first to last, and then display them from last to first. Save the program as IntegerList.cs.

8. Write a program that computes commissions for automobile salespeople based on the value of the car. Salespeople receive 5 percent of the sale price for any car sold for up to and including $15,000; 7 percent for any car over $15,000 up to and including $24,000; and 10 percent of the sale price of any car over $24,000. Write a program that allows a user to enter a car price. The output is the salesperson's commission. Save the program as Commission.cs

Reference no: EM13762961

Questions Cloud

Establishing an effective it security policy framework : Establishing an effective Information Technology Security Policy Framework is critical in the development of a comprehensive security program. Additionally, there are many security frameworks that organizations commonly reference when developing t..
Review the merits of corporate growth and the situations : Review the merits of corporate growth and the situations in which a stability strategy might be more appropriate. Some say that a firm that isn't growing isn't healthy? Do you agree? Why or why not?
Write a paper that defines innovation-design and creativity : Write a 350- to 700-word paper that defines and compares and contrasts the following: Innovation, Design and Creativity. Describe the importance of the three items in meeting organizationalobjectives.
The project deliverables and to satisfy the customer : Refer back to the Project Proposal you created for the Unit II Assignment. For this assignment, you will be expanding upon that project to include a Project Scope Document-that is, the definition of what needs to be done to produce the project delive..
Write a c# program that declares variables : Write a C# program that declares variables to represent the length and width of a room in feet. Assign appropriate values to the variables
Analyze employed properly may actually increase reliability : Anastasi and Urbina assert that item analysis employed properly may actually increase a test's reliability and validity even when the test is shortened from its original form. Debate this notion.
The company reviews all analysis on a quarterly basis : You are a Cost Analyst with US Software Exchange. You have been asked to develop a budget and short term plan to create the new "Data Warehouse Software Model." The software is to be upgraded quarterly so a new project is required each quarter. The c..
Problems based on geological issues : Which river system would be best to walk along to study a large number of geologic ages.
A store is insured for liability coverage under a businessow : Businessowners PolicyA store is insured for liability coverage under a businessowners policy. Explain whether the following situations are covered under the businessowners policy. Treat each situation separately. Respond to at least two of your class..

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Write a c# program containing array that holds five integers

Write a C# program containing an array that holds five integers. Assign values to the integers.Display the integers from first to last, and then display them from last to first. Save theprogram as IntegerList.cs.

  Describe the characteristics of visual studio 2005

Describe the characteristics of Visual Studio 2005 Visual Studio.Net is a suite of products that includes 4 main languages. Name these languages and outline their use in industries

  Webite hi sir u need to bild the website the qustion sheet

hi sir u need to bild the website .the qustion sheet is cis2oo3 file and the rubal is the rar file which i had done for

  Create a website to allow pizza shop employee to enter order

Create a website in asp.net to allow the pizza shop employee to enter customer orders. The size of the pizza cam be entered using a drop down list, and the quantity be entered using a text box.

  Program that computes the amount of money the computer club

Write a program that computes the amount of money the computer club will receive from proceeds of their granola bar sales project. Allow the user to enter the number of cases sold and the sale price per bar. Each case contains 12 bars; each case is p..

  1 on examining the ct scan of a patient who recently

1. on examining the ct scan of a patient who recently suffered from a stroke the neurologist noted that there is an

  Write an application in c it must include gui as well as at

write an application in c it must include gui as well as at least one user-defined class that computes the fee for

  Convert meters to feet and inches.

1. Write a program that can be used to convert meters to feet and inches. Allow the user to enter a metric meter value in a method .

  1 design a web application using visual studionet 2012 c

1. design a web application using visual studio.net 2012 c language with the implementation of the followinga upload

  Very boards does a big business in shirts especially for

very boards does a big business in shirts especially for groups and teams. they need a project that will calculate the

  Create a program that prompts the user for a name

Write a program that prompts the user for a name, Social Security number, hourly pay rate, and number of hours worked. Display the information that was input by the user.

  Briefly describe how parameter passing by value

Briefly describe how parameter passing by value and by reference are accomplished in memory. Write statement 1 to call Method A below. Write statement 2 to call Method B. Which method uses pass by value? Which method uses pass by reference?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd