I need help with my programming assignment which states

A mail-order house sells five different products whose retail prices are as follows:

Product Price

1 $2.98;

2 $4.50;

3 $9.98;

4 $4.49;

5 $6.87.

Write a C++ program that reads a series of pairs of numbers as follows:

a) Product number

b) Quantity sold for one day

I am really stuck and i don't know how to start... Can u someone please help????

8 Years
Discussion Span
Last Post by restrictment

Here's how I would start

using namespace std;
int main()
//write code

But seriously, try something and show us what you did.

Edited by Grn Xtrm: n/a


"Help with my programming assignment"
~ No

*Please read the rules first. You must demonstrate some sort of effort before we should help you..* Why? Because it is not only cheating your class, it is cheating yourself. If you don't learn how to problem solve..you never will. It really isn't that we are just being mean. >.>

Thread: http://www.daniweb.com/forums/announcement8-2.html

Edited by restrictment: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.