What's new

Help C# Error while in putting "else"

[XX='G I N E B R A, c: 415434, m: 1031988'][/XX] kahit self study yan sana naman may sample code diba kahit papano, kasi kung mag search ka sa internet iba-iba lalabas na style ng code
 
[XX='inusena, c: 415830, m: 588361'][/XX]

Directions:
1. Create Struct BoardMarker with the ff: members (inkColor and inkContent) with inital values (Black and 20). Declare the ff: methods
A. displayInfo (Show the inkColor and inkContent)
B. changeColor ( Ask the user to input new color. Note: You cannot change the color if the ink is not empty)
C. Refill( Set the inkContent to 20ml)
D. Write(Deduct 10ml every time you execute this method) Note: You cannot execute this method if the inkContent is empty…Prompt the user to refill.
In the main Method, create a Struct Variable bm of the Struct BoardMarker. Show the Main MENU

Sample Output:

==MENU==
1. Display Info
2. Change Color
3. Refill
4. Write
Enter you choice:

Kuys. Pano kaya to? C# po
 
Back
Top