Write a method called CaculateTuitionFee(int numberOfCourses, double costPerCourse = 449.99). This method will calculate and return the required fees amount. [Fees = number of courses * cost per course + 15.25]. Call the CaculateTuitionFee() method four times from your program Main() method supplying different arguments each time. Write a method called CalculateCommission(double saleAmount). This method will calculate and return a sales representation’s commission. [over $1000 the commission will be 1%]. Call the CalculateCommission() method three times from your program Main() method, supplying arguments 900, 1000 and 2000. Write a method that does not take any argument. The method will prompt the user for the number of burgers that he wants to buy. The method will calculate and return the amount of money that will be required. [One burger cost $1.39]. From your program Main() method, call the above method two times Use the e symbol to specify very large or very small values: double G = 6.673e-11; “Newton's law of universal gravitation states that every point mass in the universe attracts every other point mass with a force that is directly proportional to the product of their masses and inversely proportional to the square of the distance between them.” Write a method called CalculateGravitationalAttraction() that takes three double arguments (masses of the two bodies and the distance between them). The method will calculate and return the force of attraction between them. [ , where G = 6.673x10-11]. In your main call this method with the masses of the earth, moon and the distance between them and display the resulting force. Mass of Earth = 5.972 × 1024, moon = 7.348 × 1022, Distance = 384,400000m. [Answer 1.99 x 1020N] Heron’s formula allows you to calculate the area of any triangle given the length of the three sides. Write a method that takes the length of the three sides and return the area of the specified triangle.  where  . In your main call this method with arguments 5.83, 4.24 and 8.00, and display the area. [Answer = 12.0]. Write a method called ConvertCelsiusToFahrenheit that takes a double argument. The method will calculate and return the Fahrenheit equivalent of the argument. [F = C * 9 / 5 + 32]. In your main call this method three times with arguments 0, 50 and 100 respectively and display the results. Write a method called ConvertFahrenheitToCelsius that takes a double argument. The method will calculate and return the Celsius equivalent of the argument. [C = (F – 32) * 5 / 9]. In your main call this method three times with arguments 0, 32 and 212 respectively and display the results. Write a method called ConvertCelsiusToKelvin that takes a double argument. The method will calculate and return the Kelvin equivalent of the argument. [K = C + 273.15]. In your main call this method three times with arguments -196, 0 and 100 respectively and display the results. Supplying the output of one method call into the input of another method is referred to as method chaining. It is an elegant style of programming. Write a method call ConvertFahrenheitToKelvin that takes a double argument. The method will calculate and return the Kelvin equivalent of the argument. [DO NOT RE-CODE THIS METHOD. Use the two previous methods to assist in your computation]. In your main call this method three times and display the results.use c# programming

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%
  1. Write a method called CaculateTuitionFee(int numberOfCourses, double costPerCourse = 449.99). This method will calculate and return the required fees amount. [Fees = number of courses * cost per course + 15.25].
    Call the CaculateTuitionFee() method four times from your program Main() method supplying different arguments each time.

  2. Write a method called CalculateCommission(double saleAmount). This method will calculate and return a sales representation’s commission. [over $1000 the commission will be 1%].
    Call the CalculateCommission() method three times from your program Main() method, supplying arguments 900, 1000 and 2000.

  3. Write a method that does not take any argument. The method will prompt the user for the number of burgers that he wants to buy. The method will calculate and return the amount of money that will be required. [One burger cost $1.39].
    From your program Main() method, call the above method two times

    Use the e symbol to specify very large or very small values:

    double G = 6.673e-11;

  4. Newton's law of universal gravitation states that every point mass in the universe attracts every other point mass with a force that is directly proportional to the product of their masses and inversely proportional to the square of the distance between them.” Write a method called CalculateGravitationalAttraction() that takes three double arguments (masses of the two bodies and the distance between them). The method will calculate and return the force of attraction between them. [ , where G = 6.673x10-11].
    In your main call this method with the masses of the earth, moon and the distance between them and display the resulting force. Mass of Earth = 5.972 × 1024, moon = 7.348 × 1022, Distance = 384,400000m. [Answer 1.99 x 1020N]

  5. Heron’s formula allows you to calculate the area of any triangle given the length of the three sides. Write a method that takes the length of the three sides and return the area of the specified triangle.  where  .
    In your main call this method with arguments 5.83, 4.24 and 8.00, and display the area. [Answer = 12.0].

  6. Write a method called ConvertCelsiusToFahrenheit that takes a double argument. The method will calculate and return the Fahrenheit equivalent of the argument. [F = C * 9 / 5 + 32].
    In your main call this method three times with arguments 0, 50 and 100 respectively and display the results.

  7. Write a method called ConvertFahrenheitToCelsius that takes a double argument. The method will calculate and return the Celsius equivalent of the argument. [C = (F – 32) * 5 / 9].
    In your main call this method three times with arguments 0, 32 and 212 respectively and display the results.

  8. Write a method called ConvertCelsiusToKelvin that takes a double argument. The method will calculate and return the Kelvin equivalent of the argument. [K = C + 273.15].
    In your main call this method three times with arguments -196, 0 and 100 respectively and display the results.

    Supplying the output of one method call into the input of another method is referred to as method chaining. It is an elegant style of programming.

  9. Write a method call ConvertFahrenheitToKelvin that takes a double argument. The method will calculate and return the Kelvin equivalent of the argument. [DO NOT RE-CODE THIS METHOD. Use the two previous methods to assist in your computation].
    In your main call this method three times and display the results.use c# programming 

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Math class and its different methods
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education