File tree Expand file tree Collapse file tree 8 files changed +44
-15
lines changed Expand file tree Collapse file tree 8 files changed +44
-15
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ static void Main(string[] args)
27
27
28
28
myResume . _jobs . Add ( job1 ) ;
29
29
myResume . _jobs . Add ( job2 ) ;
30
+ myResume . _jobs . Add ( job3 ) ;
30
31
31
32
myResume . Display ( ) ;
32
33
}
Original file line number Diff line number Diff line change 1
1
/*
2
- Program Diagram
2
+ Program Diagram
3
+
3
4
+-----------------+
4
5
| Program |
5
6
+-----------------+
@@ -17,15 +18,15 @@ Program Diagram
17
18
| | | -response: str |
18
19
| +get_prompt(): str | | -date: str |
19
20
+-----------------------+ +----------------+
20
- |
21
+ |
21
22
|
22
23
+-------------+-------------------+
23
24
| | |
24
- +---------+-----+ +-----+---------+ +------------+
25
- | SaveToFile | | LoadFromFile | | Display |
26
- +----------------+ +----------------+ +-------------------------+
27
- | -filename: str | | -filename: str | | -journal: list of Entry |
28
- | | | | | |
29
- | +save(): None | | +load(): None | | +display(): None |
30
- +----------------+ +----------------+ +-------------------------+
25
+ +---------+-----+ +-----+---------+ +------------+
26
+ | SaveToFile | | LoadFromFile | | Display |
27
+ +----------------+ +----------------+ +-------------------------+
28
+ | -filename: str | | -filename: str | | -journal: list of Entry |
29
+ | | | | | |
30
+ | +save(): None | | +load(): None | | +display(): None |
31
+ +----------------+ +----------------+ +-------------------------+
31
32
*/
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ namespace DailyJournal
4
4
{
5
5
class Entry
6
6
{
7
- private string _prompt ;
8
- private string _response ;
9
- private string _date ;
7
+ public string _prompt ;
8
+ public string _response ;
9
+ public string _date ;
10
10
11
11
public Entry ( string prompt , string response , string date )
12
12
{
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ namespace DailyJournal
4
4
{
5
5
class Journal
6
6
{
7
- private List < Entry > entries ;
7
+
8
+ public List < Entry > entries ;
8
9
9
10
public Journal ( )
10
11
{
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ static void Main(string[] args)
8
8
{
9
9
Journal journal = new Journal ( ) ;
10
10
11
- // List of prompts
12
11
List < string > prompts = new List < string >
13
12
{
14
13
"Did anything unexpected happen today that surprised you? " ,
@@ -40,7 +39,7 @@ static void Main(string[] args)
40
39
Console . WriteLine ( "4. Load" ) ;
41
40
Console . WriteLine ( "5. Quit" ) ;
42
41
43
- Console . Write ( "\n What would you like to do? " ) ;
42
+ Console . WriteLine ( "\n What would you like to do? " ) ;
44
43
string choice = Console . ReadLine ( ) ;
45
44
46
45
switch ( choice )
Original file line number Diff line number Diff line change
1
+ 05/12/2023,What would you like to do more of in your daily life and how do you plan to achieve it? ,no no no
2
+ 05/12/2023,What was the most meaningful spiritual experience you had today? ,nananan hahaha
3
+ 05/12/2023,Did anything unexpected happen today that surprised you? ,I meet a person I did not se in a while
Original file line number Diff line number Diff line change
1
+ using System ;
2
+
3
+ class MyJournal
4
+ {
5
+ static void Main ( String [ ] args )
6
+ {
7
+ MyJournal journal1 = new MyJournal ( ) ;
8
+
9
+ List < string > prompts = new List < string >
10
+ {
11
+ "Hello hello" ;
12
+ "My name is Gabriel" ;
13
+ }
14
+ } ;
15
+
16
+ bool quit = false
17
+ while ( ! quit )
18
+ {
19
+ Console . WriteLine ( "\n Welcome to the Journal Program" ) ;
20
+ Console . WriteLine ( "Choose one" ) ;
21
+ }
22
+
23
+
24
+ }
You can’t perform that action at this time.
0 commit comments