🔒 Closed C# Error while in putting "else"

Status
Not open for further replies.
[XX='inusena, c: 413125, m: 588361'][/XX] paps pa help naman po nito. C# po. Dapat po mapalabas yung output na example po jan.
 

Attachments

  • IMG_20201022_075338.webp
    IMG_20201022_075338.webp
    40.1 KB · Views: 18
[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
 
Status
Not open for further replies.

About this Thread

  • 56
    Replies
  • 2K
    Views
  • 5
    Participants
Last reply from:
G I N E B R A

Trending Topics

Online now

Members online
647
Guests online
742
Total visitors
1,389

Forum statistics

Threads
2,276,534
Posts
28,970,672
Members
1,230,368
Latest member
sugarcoateddih
Back
Top