USF Coding Object Oriented Approach Designing Intelligently Project

I need an explanation for this Programming question to help me study.

In project 1 you wrote an application to see how distributed are the  numbers created by instances of the Random class. Many of you have used a  functional approach while others used some object-oriented concepts.

In this project we will solve our problem using a purely  object-oriented approach. You will see how designing objects (their  properties and methods) intelligently can make code really powerful.

Specifications:

We want to design our die class (to be named aDie) such that we can have statements such as:

aDie D; // To instantiate a Die object

int rolled = D;  // To get the value rolled by D

rolled = D + D;  // To get the value of the sum of 2 rolls of the die

aDie d1, d2; // to instantiate 2 dice

rolled = d1 + d2; // To get the value of the sum of the roll of 2 dice

In essence, we are creating a new class that behaves like a random  number whenever it is used in an expression whose result is an int.

As in project 1, we will want to visualize the histograms for different experiments.

We want to see the histograms for the faces of 1 die.

We want to see the histograms for the faces of the sum of 2 dice.

We want to see the histograms for the faces of the product of 2 dice

Design a coin class (to be called aCoin) that simulates a coin. You want to design it so that you can do this:

// Instantiate a coin

aCoin coin;

// Get the result of a “toss” of the coin this way:

String z = coin;

The variable z should only be  “H” or “T” for Heads and Tail.

Then show the number of  H’s and of  T’s obtained by displaying their counts

Then display the histogram of the toss results. As before, the maximum count should be represented with 60 X’s

Finally we want to simulate drawing cards from a deck,with or without  replacement. With replacement means that the card is placed back in the  deck after having been drawn.

You will want to design a class that represents a deck of card (52  cards. 13 cards: Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King)

The class is to be called “aDeckOfCards”. And it should generate a random card drawn out of the deck.

The card should be printable with a string  of the form: “Brand-Suit”  where the brands are A,2,3,4,5,6,7,8,9,T,J,Q,K and the suits are  “S,H,D,C for Spades, Heart, Diamond and Clubs)

You should be able to have statements such as:

// Declare a deck of cards

aDeckOfCards deck;

// Get a random card from the deck

aCard c = deck;// Draw a hand of N cards

Vector<aCard> hand = deck.draw(N);

Using your aDeckOfCards class, simulate the result of drawing 4 hands  of 5 cards each (as in playing poker) and show each hand by printing  the 5 cards of each hand. You should have a print method for a card so  that you can print each card of the hand as in 4-S, K-H, K-D, 3-C, T-H  for 4 of SPADE, King of HEART, KING of Diamond,3 of Club and TEN of  Heart

This may seem a little abstract but given our lecture you should be able to get the job done.  

Each of your classes should have its own “.h” file and “.cpp” files.

The aDie file for example should be implemented with “aDie.h” and “aDie.cpp”.

As in real life, this project may be amended.

project 1 code is attached

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with MyhomeworkGeeks
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Business and administrative studies
excellent, got a 100
Customer 452773, May 17th, 2023
Business and administrative studies
perfect
Customer 452773, February 23rd, 2023
Business and administrative studies
Thanks
Customer 452773, March 3rd, 2023
ACC/543: Managerial Accounting & Legal Aspects Of Business
EXCELLENT JOB
Customer 452773, January 10th, 2024
Management
Love this writer!!! Great work
Customer 452597, April 5th, 2021
Humanities
Thank youuuu
Customer 452729, May 30th, 2021
Psychology
Thank you!
Customer 452545, February 6th, 2021
Managerial Accounting & Legal Aspects of Business ACC/543
excellent work
Customer 452773, February 7th, 2024
Business and administrative studies
excellent job! got an A, thank you
Customer 452773, May 24th, 2023
Business and administrative studies
excellent work
Customer 452773, March 9th, 2023
English 101
IThank you
Customer 452631, April 6th, 2021
Business and administrative studies
excellent paper
Customer 452773, March 3rd, 2023
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat
Close

Sometimes it is hard to do all the work on your own

Let us help you get a good grade on your paper. Get professional help and free up your time for more important courses. Let us handle your;

  • Dissertations and Thesis
  • Essays
  • All Assignments

  • Research papers
  • Terms Papers
  • Online Classes
Live ChatWhatsApp