C++ Assignment POS

Completado Publicado hace 7 años Pagado a la entrega
Completado 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...

Programación en C++

Nº del proyecto: #13474582

Sobre el proyecto

29 propuestas Proyecto remoto Activo hace 7 años

Adjudicado a:

kostasrim

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.

$100 CAD en 1 día
(20 comentarios)
4.0

29 freelancers están ofertando un promedio de $50 por este trabajo

szymszteinsl

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

$100 CAD en 3 días
(62 comentarios)
6.6
hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Más

$80 CAD en 1 día
(62 comentarios)
6.3
urmate

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

$60 CAD en 1 día
(113 comentarios)
5.6
wangbeizou

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

$58 CAD en 2 días
(50 comentarios)
5.3
DmitryV88

Hi, It's simple and interesting task for me what will be done with high quality code and on time. Best regards, Dmitry.

$62 CAD en 1 día
(7 comentarios)
4.4
BeautiCG

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...

$25 CAD en 1 día
(12 comentarios)
4.0
Nawaz091993

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.

$120 CAD en 5 días
(15 comentarios)
3.7
abhijitbuet

Expert in C++ programming.....

$50 CAD en 1 día
(14 comentarios)
3.7
CaptainSadaf

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

$55 CAD en 1 día
(6 comentarios)
3.6
sujanttt

Hello sir. I am interested in your POS system and will implement using c++. This may take couple of hours. I am c++ developer. I will remain communicated through out the project's duration. For the project I plan to us Más

$25 CAD en 1 día
(10 comentarios)
3.1
vtatarenko

A proposal has not yet been provided

$55 CAD en 2 días
(5 comentarios)
2.5
achouriissam

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

$19 CAD en 3 días
(2 comentarios)
1.9
jigneshlakhani0

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

$55 CAD en 1 día
(2 comentarios)
1.9
asimhussain26

Hello Sir, Share project details please. I am available

$55 CAD en 1 día
(1 comentario)
0.6
allwriter4u

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

$80 CAD en 1 día
(1 comentario)
0.0
isuruherath1

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

$10 CAD en 1 día
(0 comentarios)
0.0
nourdineahnini

A proposal has not yet been provided

$30 CAD en 1 día
(0 comentarios)
0.0
webartist7711

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

$25 CAD en 1 día
(0 comentarios)
0.0
mdeyog

Send me the full specs

$30 CAD en 3 días
(0 comentarios)
0.0
mirage254

A proposal has not yet been provided

$15 CAD en 1 día
(1 comentario)
0.0