PLEASE DO IT AS PER REQUIREMENT AND PLEASE PUT THE RUNNING CODE AND I WILL REALL
ID: 666747 • Letter: P
Question
PLEASE DO IT AS PER REQUIREMENT AND PLEASE PUT THE RUNNING CODE AND I WILL REALLY APPRECIATE. THIS IS C++
Goal: create a HighScoreManager and a User class.
HighScoreManager class should have a function to create a record and save it to a file organized descending based on the score and to print the top 10 High Scores to the screen. The class should look like the following. The High score structure should be stored in a binary file called highScore.dat file.
Class HighScoreManager
Private: Structure (username, score, date)
Public: CreateHighScore, UpdateHighScore, PrintHighScore
The user class will have the user login with his username if the username does not exist it will be added to a list of records. Once logged in the user will be able to update his info, set a high score, delete his information, or print all the high scores in a table format. The users will be stored in a text file called user.txt
The user class will contain the following:
Class User
Private: Structure (username, user info(between 1-4 fields)
Public: Login, CheckIfUserExist, UpdateUserList, DeleteUser, SetHighScore
In the main, the user will first login and then be shown a menu with the options to update his info, set a high score, delete his information, print all the high scores, exit.
Explanation / Answer
main.cpp
HighScoreManager.h
HighScoreManager.cpp
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.