hi, my professor recently assigned a programming assignment in which i have to implement a cash card-laundry room operation system including a VTM, washers, dryers, and money cards. i'm suppose to define 4 classes for VTM, washer, dryer and money card individually. the VTM should only accept $1, $5, $10, and $20 bills and adds 10% for $10 bills, 15% for $20 bills. washer takes $1.25 for each load and dryer takes $.35 for 10 minutes.

after the card is used, i need to print the balance of VTM, the card, washer and dryer.

i have no idea how to start this. i'm not asking for codes or anything but can someone point me in the direction as to how to start approaching this problem??

any help is appreciated! thanks in advance!

# Can someone point me in the right direction?

Page 1 of 1## 10 Replies - 1414 Views - Last Post: 02 December 2009 - 02:42 PM

##
**Replies To:** Can someone point me in the right direction?

### #2

## Re: Can someone point me in the right direction?

Posted 25 November 2009 - 07:51 PM

For this you clearly need some understanding of classes, I could help you out if you wanted.

Also, excuse me for being dense, but what is a VTM? I have searched but I cant find anything on it.

Also, excuse me for being dense, but what is a VTM? I have searched but I cant find anything on it.

This post has been edited by **Aphex19**: 25 November 2009 - 08:21 PM

### #3

## Re: Can someone point me in the right direction?

Posted 25 November 2009 - 07:59 PM

xinvux, on 25 Nov, 2009 - 06:31 PM, said:

hi, my professor recently assigned a programming assignment in which i have to implement a cash card-laundry room operation system including a VTM, washers, dryers, and money cards. i'm suppose to define 4 classes for VTM, washer, dryer and money card individually. the VTM should only accept $1, $5, $10, and $20 bills and adds 10% for $10 bills, 15% for $20 bills. washer takes $1.25 for each load and dryer takes $.35 for 10 minutes.

after the card is used, i need to print the balance of VTM, the card, washer and dryer.

i have no idea how to start this. i'm not asking for codes or anything but can someone point me in the direction as to how to start approaching this problem??

any help is appreciated! thanks in advance!

after the card is used, i need to print the balance of VTM, the card, washer and dryer.

i have no idea how to start this. i'm not asking for codes or anything but can someone point me in the direction as to how to start approaching this problem??

any help is appreciated! thanks in advance!

A good starting place is to write out your math steps. This will help you see what you need to do to fit the steps into code. Then think of the questions you would want to be asked or prompted as a user. I know I am just a beginner, but when I had a math based question like this in class, it helped me a great deal to see the steps needed in solving the math problem, then using pseudocode, then converting to language...in my case c++.

### #4

## Re: Can someone point me in the right direction?

Posted 26 November 2009 - 12:43 PM

### #5

## Re: Can someone point me in the right direction?

Posted 26 November 2009 - 12:54 PM

Start small by designing on paper the various classes you need to implement.

### #6

## Re: Can someone point me in the right direction?

Posted 02 December 2009 - 01:47 PM

has anyone figured this one out?

### #7

## Re: Can someone point me in the right direction?

Posted 02 December 2009 - 01:54 PM

### #8

## Re: Can someone point me in the right direction?

Posted 02 December 2009 - 02:09 PM

im so lost, is this right for the washer?

class washer { public: // Cost of Total Loads double washerLoads; // Construct a default number of loads washer() { washerLoads = 1.25; } // Construct a washer load amount washer(double newwasherLoads) { washerLoads = newwasherLoads; } // Return cost of Loads double washerCost() { return washerLoads * 1.25; } };

### #9

## Re: Can someone point me in the right direction?

Posted 02 December 2009 - 02:12 PM

Where are you getting 1.25 requirement for "number of loads"? That's a cost per load, isn't it?

### #10

## Re: Can someone point me in the right direction?

Posted 02 December 2009 - 02:17 PM

since i am trying to calculate the total cost, i want the user to input the number of loads have that multiplied by 1.25

### #11

## Re: Can someone point me in the right direction?

Posted 02 December 2009 - 02:42 PM

can someone please help, this is what i got for dryer, am i at least on the right track?

class dryer { public: double minutes; dryer() { minutes = 10; } dryer(double newminutes) { minutes = newminutes; } double getCost() { return (minutes / 10) * 0.35; } };

Page 1 of 1