Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Jacobson Builders is constructing new homes in the Parkway subdivision. The comp

ID: 3539488 • Letter: J

Question

Jacobson Builders is constructing new homes in the Parkway subdivision. The company needs the logic for an application that calls a method that computes the final price for construction of a new home. The Main() method prompts the user for the number of bedrooms and bathrooms in the home and for the salesperson%u2019s commission expressed as a percentage, and then displays the final price.

Create a CalculatePrice() method that determines the final price and returns the value to the calling method. The CalculatePrice() method requires three arguments: bedrooms, baths, and salesperson commission rate. A home%u2019s final price is the sum of the base price of $100,000 plus $20,000 per bedroom, $30,000 per bathroom, and the salesperson commission amount.

Design and create the application.
Type your question here Jacobson Builders is constructing new homes in the Parkway subdivision. The company needs the logic for an application that calls a method that computes the final price for construction of a new home. The Main() method prompts the user for the number of bedrooms and bathrooms in the home and for the salesperson%u2019s commission expressed as a percentage, and then displays the final price.

Create a CalculatePrice() method that determines the final price and returns the value to the calling method. The CalculatePrice() method requires three arguments: bedrooms, baths, and salesperson commission rate. A home%u2019s final price is the sum of the base price of $100,000 plus $20,000 per bedroom, $30,000 per bathroom, and the salesperson commission amount.

Design and create the application.
Type your question here

Explanation / Answer

using System;


class Program

{

public static void Main()

{

int beds,baths,commission;

Console.Write("Enter number of Bedrooms: ");

beds=int.Parse(Console.ReadLine());

Console.Write("Enter number of Bathrooms: ");

baths=int.Parse(Console.ReadLine());

Console.Write("Enter Salesperson's commission expressed as a percentage: ");

commission=int.Parse(Console.ReadLine());

Console.WriteLine();

Console.WriteLine("Final Price of house is $"+ CalculatePrice(beds,baths,commission));

}

public static int CalculatePrice(int beds,int baths,int commission)

{

int sub= 100000 + beds*20000 + baths*30000;

int final = sub + (commission*sub/100);

return final;

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote