Click here to Skip to main content
15,035,866 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
We have a "captain" and a "player " interface
(Captain Tasks):
*Add new players and send them to the player
*The captain agrees to the player's payments (if it is only a real bill and the value of the payments to one player is less or equal to $ 100 the same day for each player) with a serial number
*Receive invoices (which the captain previously agreed) on the 20th of every month for the 30th day of the month
(Player tasks):
Receiving New Players:
*Adding a bill for players' payments (a real bill and a non-real one)
*Knowing if a captain agrees to the bill or no with a serial number
Send a request to accept the invoice

What I have tried:

What is the C Sharp language code?
Posted
Updated 9-May-21 8:59am
Comments
Dave Kreskowiak 7-May-21 22:22pm
   
Did you want to rephrase that "question"? Begging for the code is not how you're going to get through this assignment.

Here are some tips to get you started.

You can find an interface example here: https://www.dotnetperls.com/interface[^]

To create a serial number you can use:
Guid g = Guid.NewGuid();
Also see: Guid.NewGuid Method (System) | Microsoft Docs[^]
   
v2
Comments
BillWoodruff 8-May-21 6:53am
   
does this kind of gimmecodez question really deserve a response ?
RickZeeland 8-May-21 8:04am
   
Maybe not, but let's stay friendly and give some hints for those who are really desparate :)
Seems as if you have a few classes to identify and their actions.
Your solution so far is a good start.

Already have
Captain Class (interface)
Player Class (interface).

Then I would suggest a 'Bank' or 'Escrow' class That maintains the amount each player is allocated and the date the allocation occured.

Then it is a matter of creating properties for the Captain, Player, and Escrow class to track the money.

From there you should be able to create methods for add, deduct and report transactions.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900