-1

I need to create a structure related to an overtime pay calculator and define the variables needed within the structure to do those calculations.

Then define and create a base class using the same variables that may serve the same function as the structure

This is as far as I understand.
Help!

// Week 6 Checkpoint Overtime Pay Structures

#include <iostream>

using std::cout;
using std::endl;
using std::cin;

struct OVERTIME
{
	double rate;
	double hours_worked;
	double ot_rate;
};

OVERTIME nov =
{
	25.51,
	80,
	1.5
};

Edited by Nick Evan: Added code-tags

2
Contributors
3
Replies
13
Views
7 Years
Discussion Span
Last Post by geethasree
0

what is the question / problem? you just explained some piece of code here and not mentioned anything else....

0

what is the question / problem? you just explained some piece of code here and not mentioned anything else....

I have no idea how to proceed. Is what I have written correct? If not, what am I doing wrong?
Thanks!:icon_cheesygrin:

0

so you are basically expecting the whole code that runs, am I right!!
sorry to say but, this forum is to help each other if we are struck in between or have any problem which we cannot solve by ourselves.

So I better suggest you to learn C++ and come up with a program. Once that is there and if you cannot solve it you can post it again with the problem

Also you should read the post which says "Read this before posting"

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.