🔒 Closed Structure board maker C# pa help po.

Status
Not open for further replies.

Maginaku

Honorary Poster
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:
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 1K
    Views
  • 3
    Participants
Last reply from:
soapcore09

Online now

Members online
641
Guests online
670
Total visitors
1,311

Forum statistics

Threads
2,276,081
Posts
28,967,440
Members
1,231,105
Latest member
manoy123
Back
Top