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

  Design a web application using visual studio

Design a web application using Visual Studio.NET 2012 - the difference between the files is the character ‘h' is missing in the position 120 in the uploaded file.

  Develop web services based application

Develop and test a Web services based application that meets the requirements applying SOA design principles.

  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

  A parking garage charges a 200 minimum fee to park for up

a parking garage charges a 2.00 minimum fee to park for up to three hours. the garage charges an additional 0.50 per

  Medical calculator srs excerpts

Choose one of the use cases and develop detailed use case steps using the Use Case Template. See the Medical Calculator SRS Excerpts for an example of a use case.Make certain that you use the Use Case Template. Also review Developing Use Cases wit..

  Creates three arrays of type double

Write a C# program that creates three arrays of type double. Using a loop, prompt the user to input 10 initial values for each of two arrays (for a total of 20 values).

  Implementing the insurance management system general

implementing the insurance management system general informationthe purpose of this assignment is to provide you with

  Develop an asp.net web page

Develop an ASP.NET web page that will allow the students to submit information about themselves, and the courses that they are taking on-line. The information will be stored in an MS-SQL Server Express 2008 database, named College.

  Allow the user to input the first and last base values

Write a C# program that produces a multiplication table. Allow the user to input the first and last base values for the multiplication table. Display a column in the table beginning with the first base inputted value

  1 develop and test a web services based application that

1 develop and test a web services based application that meets the following requirements applying soa design

  Design and implement tower of hanoi puzzle program

Task: Design and implement Tower of Hanoi Puzzle program using C# and Windows Presentation Foundation (WPF) template in Visual Studio 2012 or newer.

  Add insert and edit menu options - insert will allow the

add insert and edit menu options - insert will allow the user to insert a new account in a position of his choice -

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