Question: Write the programs in C# in Unity environment (1) Write a function called Money ) which calculates the amount of money a person would eam

 Write the programs in C# in Unity environment (1) Write a
function called Money ) which calculates the amount of money a person

Write the programs in C# in Unity environment (1) Write a function called Money ) which calculates the amount of money a person would eam over a period of N days if his/her salary is one dollar the first day, two dollars the second day, and continues to double each day. Test your program with N-10 days and N - 16 days. Answers (2) write a function called AverageN which calculates the average of Sum = 1 +2 +3 + ... +100 Answer - (3) To determine whether a year is a leap year, the algorithm is: 1. If the year is evenly divisible by 4. go to step 2. Otherwise, go to steps (3) To determine whether a year is a leap year, the algorithm is: 1. If the year is evenly divisible by 4 go to step 2. Otherwise, go to step 5. 2. If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 4. 3. If the year is evenly divisible by 400, go to step 4. Otherwise, go to step 5. 4. The year is a leap year (it has 366 days). 5. The year is not a leap year (it has 365 days). For example, the years 2000 and 2020 are leap years, while the years 1800 and 1900 are not leap years. Write a function called Leap Year() which count how many leap years between (and including the year 1700 and 2100

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!