Question: C#: Write 2 new methods named assignBook and assignWriter. assignBook should assign a book to a contract, similar to the assignEditor. assignWriter should assign a

C#:

Write 2 new methods named assignBook and assignWriter. assignBook should assign a book to a contract, similar to the assignEditor. assignWriter should assign a writer to a book.

Extend the menu options to have the user be able to make these assignments

public void assignEditor(int contractNumber, String editorFirstName, String editorLastName) { // Find the contract using the contractNumber // Find the editor using the first name and last name

contract.Editor = editor; //This is the last line of the method.

} public void assignBook(int contractNumber, String editorFirstName, String editorLastName) {

contract.Book = book; }

public void assignWriter(int contractNumber, String editorFirstName, String editorLastName) {

book.Writer = writer;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!