25
1
// Directions: Intermediate #2-1
2
// 1) Add code to the Main method:
3
// a) Create a loop that will start with 25 cents and increase in value 1%.
4
// b) The sum of the value of the account should accumulate. (.25 for day 1, .51 for day 2)
5
// c) Output the accumuluating value until the new sum value is greater than 100 and the number of days.
6
// 2) Submit your dotnetfiddle link in Blackboard.
7
8
/* Part of my output
9
Day: 1: 0.2500: Sum 0.2500
10
Day: 2: 0.2525: Sum 0.5025
11
...
12
Day: 160: 1.2163: Sum 97.8457
13
Day: 161: 1.2285: Sum 99.0741
14
Value after 162 days: ¤100.31
15
*/
16
17
using System;
18
19
public class Program
20
{
21
public static void Main()
22
{
23
24
}
25
}
Cached Result