C++ Assignment POS
$10-30 CAD
Pagado a la entrega
Your job for this project is to prepare an application that manages the list of items stocked in a store for sale. Your application keeps track of the quantity of items in the store, saved in a file and updates their quantity as they are sold.
THE DATE CLASS
The Date class encapsulates a single date and time value in the form of five integers: year, month , day, hour and minute. The date value is readable by an istream and printable by an ostream using the following format: YYYY/MM/DD, hh:mm or YYYY/MM/DD if the class is to hold only the date without the time. (i.e. if m_dateOnly is true; see “bool m_dateOnly;”)
Complete the implementation of the Date class under the following specifications:
Member Data (attributes):
int m_year;
Year; a four digit integer between MIN_YEAR and MAX_YEAR, as defined in “POS.h”
int m_mon;
Month of the year, between 1 to 12
int m_day;
Day of the month, note that in a leap year February has 29 days, (see mday() member function)
int m_hour;
A two digit integer between 0 and 23 for the hour the a day.
int m_min;
A two digit integer between 0 and 59 for the minutes passed the hour
int m_readErrorCode;
Error code which identifies the validity of the date and, if erroneous, the part that is erroneous.
Define the possible error values defined in the Date header-file as follows:
NO_ERROR 0 -- No error - the date is valid
CIN_FAILED 1 -- istream failed on accepting information using cin
YEAR_ERROR 2 -- Year value is invalid
MON_ERROR 3 -- Month value is invalid
DAY_ERROR 4 -- Day value is invalid
HOUR_ERROR 5 -- Hour value is invalid
MIN_ERROR 6 -- Minute value is invalid
bool m_dateOnly;
A flag that is true if the object is to only hold the date and not the time. In this case the values for hour and minute are zero.
Private Member functions (private methods):
int value()const; (this function is already implemented and provided)
This function returns a unique integer number based on the date-time. You can use this value to compare two dates. If the value() of one date-time is larger than the value of another date-time, then the former date-time (the first one) follows the second.
void errCode(int errorCode);
Sets the m_readErrorCode member variable to one of the possible values listed above.
int mdays()const; (this function is already implemented and provided)
This function returns the number of days in the month based on m_year and m_mon values.
void set(); (this function is already implemented and provided)
This function sets the date and time to the current date and time of the system.
void set(int year, int mon, int day, int hour, int min);
Sets the member variables to the corresponding arguments and then sets the m_readErrorCode to NO_ERROR.
Constructors:
No argument constructor: Sets the m_dateOnly attribute to false and then sets the date and time to the current system’s date and time using the set() function.
Three argument constructor: This constructor sets the m_dateOnly attribute to true and then accepts three integer arguments to set the values of m_year, m_mon and m_day and sets m_hour and m_min to zero. It also sets the m_readErrorCode to NO_ERROR.
Five argument constructor: This constructor sets the m_dateOnly attribute to false and then accepts five integer arguments to set the values of m_year, m_mon, m_day, m_hour and m_min. It also sets the m_readErrorCode to NO_ERROR. The last argument of this constructor (int min) should have a default value of “0” so the constructor can be called with four arguments too.
More details/instructions but cannot post here Max 4000 Character description...
Nº del proyecto: #13474582
Sobre el proyecto
Adjudicado a:
Hello, my name is Kostas and I am an expert c/c++ developer with an extensive knowledge of algorithms and data structures. Please send me a message to discuss the details. Thank you in advance, Kostas.
29 freelancers están ofertando un promedio de $50 por este trabajo
Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to s Más
HI Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks Farah Saif
Hello. How are you. I have read and understood the project. I have strong knowledge in Data structures and Algorithms. And I'm expert in Java ,C/C++,C#, Python ,PHP etc. I'm interested this project. So, firstly Más
Hi, It's simple and interesting task for me what will be done with high quality code and on time. Best regards, Dmitry.
Hi,dear. I am a senior software developer. I have just checked your project report, I am able to perform this task with my developer team. I am looking forward to your proposal...
Greetings! I am an expert C++ programmer and I excel in completing such tasks and assignments. Your have undervalued the required budget of the project. If you want 100% correctness within 5 days, please do contact me.
I'm C++ developer and expert in C++, MS SQL server, queries (insert, delete, update, trigger, validation) and MS visual studio as tool. Developed many projects in C++, some are 1) Notepad++ using linked list data st Más
Hello, My name is Achouri Issam. I have over three years experience in Software Engineering and i have a good Knowledge with Java, JavaEE,Android,IOS, Spring, Spring MVC, EJB,Struts2, Hibernate, JSP, Servlet , JP Más
I, Jignesh Lakhani completed my masters from IIT Roorkee in Computer Engineering. I am having very good knowledge of C, C++, Java, JavaFX, Algorithm and Data Structure. I am having strong analytical power. I will comp Más
Urgent Tasks in 6 Hours MATLAB-WRITING-CODING-WEBDESIGN-BUSINESS PLANS We are highly experienced Post Graduate Engineers, Doctors, IT, ITES, Software, Infrastructure Professionals, Web Designers and IT Architects. Más
Hi, I am a Computer Science and Engineering graduate and just stepping to freelancing. I am well experienced in C++ and software development. I guarantee to complete your task with best quality. I hope you will offe Más
Hello, I am a Software Engineer. I will do your work very efficiently and on time. I've much experience in C++ and I have already done many projects in C++. I have already developed "POS SYSTEM" in C++ as my univer Más