Chat with us, powered by LiveChat Program file containing game scores | WriteMoh

Program file containing game scores

Question Description

The purpose of this assignment is to maintain a list of 10 highest scores for some game. The assignment requires building and using two libraries and reading and writing a binary file. The program will make use of an input file containing game scores.

Program Requirements

The Date Library

The Date library should contain a Date class. The Date class should contain a time_t data member to store the date.
The Date class should contain

  • 4 constructors:
    • Date();
    • Date(const Date&) = default;
    • Date(time_t); // Date in time_t format
    • Date(const char*);
  • The default constructor should create a Date object containing the current date.
  • Date(const char*) constructor should accept arguments with date formats of "mm/dd/yy", or "mm-dd-yy" or "ddmonyy"
  • The Date library should also contain an overloaded insertion operator to display Dates.
  • You may add any other member function necessary for the Date class.

The Score library

The Score library should contain a Score class and an overloaded insertion operator to display Score objects.
The Score class shold contain

  • 3 data members:
    • char name[16];
    • int score;
    • Date date;
  • One or more constructors
  • Accessor functions
  • An overloaded < operator function. You'll need this to sort the Scores.

What needs to be submitted:

  1. All of the sources files and header files for the libraries and the application. Do not include project files, object files, library archives or executables.
  2. An output file of the assignment results. It should look like that attached
  3. A screen image showing the assignment application build, including compilation and linking options.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Do you need an answer to this or any other questions?

Have an assignment?

We are here to help you

Why we are the best

  •  High quality services
  •  On time delivery
  •  Professional writers
  •  Plagiarism free essays
  •  24/7 Customer Support
  • Satisfaction guarantee

Secure Payments