SD 6502 C# object Oriented Programming Assignment
Need Help Writing an Essay?
Tell us about your assignment and we will find the best writer for your paper.
Write My Essay For MeTask 1: [20 Marks]
For the textual description of the game given above:
a. Identify classes (5-6 or more), methods (messages) and attributes. Show all the steps involved. Give reason for your choices of class and methods. [10 Marks]
b. List CRC cards for each classes you identified. [5 Marks]
c. Give Class diagram [5 Marks]
—————————————————————————————————————–
Task 2 [20 Marks]
Write a program for the game in Task 1(Blackjack). In your solution,
1. You may encode cards as follows (using c#enums) Encoding of Suits:
Suit Spade Heart Diamond Club
Encoding S H D C
Encoding of ranks:
Rank A 2 3 4 5 6 7 8 9 10 J Q K
Encoding 1 or
11 2 3 4 5 6 7 8 9 10 10 10 10
2. You may use game play logic (algorithm)as given below
a. Deal players and the house two cards
b. Hide the house’s first card if not Blackjack
c. Display players’ and house’s hands
d. Deal additional cards to players
e. Reveal house’s first card
f. Deal additional cards to house
If house is busted
SD 6502 C# object Oriented Programming Assignment
3. You may write and use methods “flip a card”, “add a card to a hand”, “clear a hand”, “get the value of a hand”, “shuffle deck”, “deal cards”, etc in the appropriate classes you have identified.
4. You must use the concept of the inheritance, polymorphism, and write polymorphic code (i.e use of overriding, making base class object behave like child class object …wherever appropriate)
5. You must not ask user to input cards-all the cards for players and the House (computer in this case) should be randomly generated from the ‘shuffled’ deck.
———————————————————————————————————————–
part 2
Task1
Write suitable data structures to represent each of the first 5 sections(tabs) along with corresponding datatypes to represent their elements/fields.
Task 2
Task 2 [ 4+6+4+1=15 Marks]
For this task there are two files given in the supplementary files folder unsorted_data.csv and
sorted_data.csv.
a. Assume that you have all the lastnames available from the form in Task 1 and you have saved
the data in a file- ‘unsorted_data.csv’. Write a C# console program to search a given
‘string’(Lastname) from the given file using sequential search algorithm.
b. Assume that you have all the lastnames available and you have saved the data in a file-
‘sorted_data.csv’. Write a C# console program to search a given ‘string’(Lastname) from the
given file using binary search algorithm.
c.Search following ‘Lastnames’ using both implementations above (Task 1a and Task1b)
d.Comment on theoretical performance-big -O Analysis.
Task 3
Write a program that sorts all the “firstnames” from the file ‘unsorted_data.csv’ using each of the basic
sorting algorithm (Insertion, Bubble, Quicksort). Record and comment on time taken (Runtime) by each
algorithm.
Task 4
Write a program that will read email addresses from a file and—for each line it reads—either display the
required version (all in lower case- if it is valid) or indicate what is wrong (if it is not valid). SD 6502 C# object Oriented Programming Assignment
Need Help with a similar Assignment?
The post SD 6502 C# object Oriented Programming Assignment appeared first on EssayPanthers.
- Confidentiality & Authenticity Guaranteed
- Plagiarism Free answers Guarantee
- We Guarantee Timely Delivery of All essays
- Quality & Reliability
- Papers Written from Scratch and to Your exact Instructions
- Qualified Writers Only
- We offer Direct Contact With Your Writer
- 24/7 Customer Support