write the code in c#  Create a class with name savingaccont.In this class you have to write the static method having name CalculteFutureValue which takes three parameters of type double along with return type double.This function should implement the formula given below.The formula, which is known as the future value formula, is:F = P  * (1 + i)tThe terms in the formula are as follows: F is the future value of the account after the specified time period. P is the present value of the account. i is the monthly interest rate . t is the number of months . Write Driver class which contains main function that prompts the user to enter the account’s present value, monthly interest rate, and the number of months that the money will be left in the account. The program should pass these values to a function named CalculteFutureValue that returns the future value of the account, after the specified number of months. The program should display the account’s future value.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

write the code in c#

 Create a class with name savingaccont.In this class you have to write the static method having name CalculteFutureValue which takes three parameters of type double along with return type double.This function should implement the formula given below.The formula, which is known as the future value formula, is:F = P  * (1 + i)tThe terms in the formula are as follows:

  • F is the future value of the account after the specified time period.
  • P is the present value of the account.
  • i is the monthly interest rate .
  • t is the number of months .

Write Driver class which contains main function that prompts the user to enter the account’s present value, monthly interest rate, and the number of months that the money will be left in the account. The program should pass these values to a function named CalculteFutureValue that returns the future value of the account, after the specified number of months. The program should display the account’s future value.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
void method
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage