C++ classes

Completado Publicado May 23, 2004 Pagado a la entrega
Completado Pagado a la entrega

#1. Define a class named GroceryItem. Include private fields that hold an item's stock number, price, quantity in stock and total value. Write three public functions that each set one of the three fields, based on user keyboard input. The functions that set the stock number require the user to enter exactly 4 digits; continue to prompt the user until a valid stock number is entered. Include a private function that calculates the the GroceryItem's total value field (price times quatitity in stock) within the same function that accepts the quantity in stock input. Write a function that displays a GroceryItem's values. Finally, write a main function that declares a GroceryItem object, assigns values to its fields and uses the display functions.

#2 Define a class named CoffeeOrder. Include private integer fields tht you set to a flag value of 1 or 0 to indicte whether the coder should have any of the following cream, milk, sugar or artificial sweetener. Include a public function that takes a user's order from the keyboard and sets the values of the four fields in response to four prompts. If the user indicates both milk and cream, turn off the milk flag to allow only cream. If the user indicates both sugar and artificial sweetener, turn off the artificial sweetener flag, allowing only sugar. Include another function that displays the user's completed order. Write a main function that declares a CoffeeOrder object and calls the data entry and displays methods.

**I need these ASAP, (by Wednesday 5/26, 6pm ET), therefore, I will take these 2 as 100%, even if only about 80% done.**

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

win xp

Programación en C Ingeniería MySQL PHP Arquitectura de software Verificación de software

Nº del proyecto: #3221966

Sobre el proyecto

26 propuestas Proyecto remoto Activo May 23, 2004

Adjudicado a:

tirraven

See private message.

$9 USD en 2 días
(13 comentarios)
3.1

26 freelancers están ofertando un promedio de $15 por este trabajo

amunsol

See private message.

$11.05 USD en 2 días
(99 comentarios)
7.0
blackstargb

See private message.

$8.5 USD en 2 días
(63 comentarios)
6.0
DanD

See private message.

$42.5 USD en 2 días
(208 comentarios)
5.8
unamigo

See private message.

$19.55 USD en 2 días
(49 comentarios)
5.2
lostbard

See private message.

$17 USD en 2 días
(221 comentarios)
5.2
coderhere

See private message.

$25.5 USD en 2 días
(28 comentarios)
5.1
shahizanvw

See private message.

$8.5 USD en 2 días
(46 comentarios)
4.6
vw450309vw

See private message.

$12.75 USD en 2 días
(16 comentarios)
3.8
eudjtt

See private message.

$34 USD en 2 días
(11 comentarios)
3.8
kalietvw

See private message.

$3.4 USD en 2 días
(10 comentarios)
3.6
seneca

See private message.

$8.5 USD en 2 días
(19 comentarios)
3.5
grayfacedbu

See private message.

$12.75 USD en 2 días
(39 comentarios)
3.5
harryhaller

See private message.

$21.25 USD en 2 días
(18 comentarios)
3.2
neo4vw

See private message.

$11.05 USD en 2 días
(16 comentarios)
3.1
rihamvw

See private message.

$21.25 USD en 2 días
(6 comentarios)
2.3
nobodyherevw

See private message.

$11.05 USD en 2 días
(5 comentarios)
2.3
ussrvw

See private message.

$8.5 USD en 2 días
(14 comentarios)
2.2
lfa

See private message.

$5.1 USD en 2 días
(6 comentarios)
1.8
objectivedevw

See private message.

$8.5 USD en 2 días
(2 comentarios)
0.0
jingovw

See private message.

$4.25 USD en 2 días
(0 comentarios)
0.0