HI i stuck on creating a jiasaw program that needs to the following
The application should save a list of Jigsaw puzzles that can be re-loaded at run time and edited. Information about the individual Jigsaw puzzles must include the name of the puzzle, the overall size of the completed puzzle (in terms of height and width), the number of pieces, whether any pieces are missing, the date the puzzle was last completed and a ‘difficulty’ rating (Easy, Medium, Hard or Very Hard).The application should enable browsing the whole list, browsing by difficulty or number of pieces, adding and deleting puzzles and editing the ‘date’ and ‘missing pieces’ fields., event and exception handling facilities need to be added.
I have started it off but I am stuck on the task and need help Here is what I have done Already
the interfae class
/**Assigment 2 interface Class
by Ashish Chaudhary
*/
{
#include "stdafx.h"
#include <iostream>
#include <iomanip>
using namespace std;
int _tmain(int argc, _TCHAR* argv[]);
{
int choice;
cout<< "welcome to the Puzzles main Menu Please select from the options";
cout<< "1. Add puzzles";
cout<<"2. Delete puzzle";
cout<< "3. View range of puzzles";
cout<< "4. View puzzles by ratings";
}
for(int 1 > choice; choice<5
return 0;
}
but dont know how to finsh it I want a menu stsyem which when you add the numbers it brings up the method to allow this.
I have also done the puzzle class but I am stuck on the delete method and display methods
{/**Assigment 2 Jigsaw Class
by Ashish Chaudhary
*/
#include "stdafx.h"
#include <iostream>
#include <iomanip>
using namespace std;
int _tmain(int argc, _TCHAR* argv[]);
char nameOfPuzzles;
int sizeOfPuzzles;
int numOfPieces;
int missingPieces;
int ListOfPuzzles;
char ratings;
char lastCompeleted;
//these are a list of attritubes which are going to be used in the puzzle class
void setSizeOfPuzzles (int sizeOfPuzzles)
{
sizeOfPuzzles = sizeOfPuzzles;
}
int getSizeOfPuzzles(int sizeOfPuzzles)
{
return sizeOfPuzzles;
}
void setNumOfPieces (int numOfPieces)
{
numOfPieces = numOfPieces;
}
int getNumOfPieces(int numOfPieces) // the above methods sets the attriubes so that they are easy to return
{
return numOfPieces;
}
void viewRatings(int numOfPieces)
{
if (numOfPieces >= 4)
{
cout<< "easy";
}
else if (numOfPieces <4&& numOfPieces >=8)
{
cout<< "medium";
}
else if (numOfPieces < 8)
{
cout<<"hard";
}
}
//the above method allows to create rating by using if statement to print out ratings
/**char createPuzzle(char nameOfpuzzles, int sizeOfPuzzles, int numOfPieces, char viewRatings)
{
cout <<"enter information about the new puzzle";
cout <<" Name Of puzzle is:"; cin>> nameOfPuzzles;
cout <<" Size Of puzzle is:"; cin>> sizeOfPuzzles;
cout <<" Number Of pieces are:";cin>> numOfPieces;
cout <<" this puzzle is rated at:";cin>> viewRatings;*/
//creates a new jiasaw puzzle
return 0;
}
please help I am fairly new to the language I would be gratefully if you could guide me on this. Also how would I incorprate interhance and data hiding into the program
Please do not create multiple threads for the same program. Also, please placing your code inside of the code tags created by clicking on the <> format button next to the text box when posting.