Create a Console application named FirstNameLastName5CA Save the application in the FirstInitialLastnameCSUnit5C folder. Create a program in which the Main() method prompts a user for length and width of a room in feet. Create a method called ComputeCost*( that accepts the values and then computes the cost of painting the room.  Use a constant value of 9 for the height.  Assume the room to be rectangular with four full walls and 9-foot ceilings. The price of the job is $6 per square foot. Return the price to the Main() method, and display it as shown in the example. An example of the program is shown below: Enter length of the room in feet >> 30 Enter width of room in feet >> 16 Cost of job for 30 X 16 foot room is $4,968.00 In order to add the $ to currency values, the program will need to use the CultureInfo.GetCultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements using the following example: WriteLine("This is an example: {0}", value.ToString("C", CultureInfo.GetCultureInfo("en-US"))); Program #2 Create a Console application named FirstNameLastName5CB Save the application in the FirstInitialLastnameCSUnit5C folder. Create an application whose Main() method prompts a user for a number of miles. Pass the value to a method called ConvertToKilos() that converts the value to kilometers Return the value to the Main() method where it is displayed as shown below

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

 

Hello I need help with these two C# programs.  

Program #1

Create a Console application named FirstNameLastName5CA

Save the application in the FirstInitialLastnameCSUnit5C folder.

Create a program in which the Main() method prompts a user for length and width of a room in feet.

  • Create a method called ComputeCost*( that accepts the values and then computes the cost of painting the room. 
  • Use a constant value of 9 for the height. 
  • Assume the room to be rectangular with four full walls and 9-foot ceilings.
  • The price of the job is $6 per square foot.
  • Return the price to the Main() method, and display it as shown in the example.

An example of the program is shown below:

Enter length of the room in feet >> 30

Enter width of room in feet >> 16

Cost of job for 30 X 16 foot room is $4,968.00

In order to add the $ to currency values, the program will need to use the CultureInfo.GetCultureInfo method.

In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements using the following example: WriteLine("This is an example: {0}", value.ToString("C", CultureInfo.GetCultureInfo("en-US")));

Program #2

Create a Console application named FirstNameLastName5CB

Save the application in the FirstInitialLastnameCSUnit5C folder.

Create an application whose Main() method prompts a user for a number of miles.

  • Pass the value to a method called ConvertToKilos() that converts the value to kilometers
  • Return the value to the Main() method where it is displayed as shown below.

1 mile is 1.60934 kilometers.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY