Solved

Visual C++ Problem!!!!

Posted on 1998-08-02
4
170 Views
Last Modified: 2013-12-14
this is my problem
The program should look like this:

(Static Text)              (Edit Box)
First Name:                (Edit Box)
Last Name:                 (Edit Box)
Hours Worked:              (Edit Box)
Pay Rate:                  (Edit Box)
Total Pay:                 (Edit Box)

(Button)Calculate                 (Button)Clear


*** The user will be able to enter the first and last name in separate edit boxes.  The hours worked will also be entered in an edit box.  Make sure your program is setup to accept a decimal. By pressing the button "Calculate", the program will display the total pay. If the "Clear button" is press, it will clear all values.


*** I have difficuties beginning and ending this program, if possible please teach me how to write this program.
THANKZ
(I'm using Microsoft Visual C++ Version 4)

Appreciate,


0
Comment
Question by:Perry001
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:tulin
ID: 1169231
It's impossible to teach you, how to write programs. You should ask more specific questions. For example:
*** I have difficuties beginning and ending this program
You begin this brogram by creating new project workspace of "Dialog Base" type.
0
 
LVL 1

Expert Comment

by:tulin
ID: 1169232
I mean MFC Wizard App, and then when it ask "SDI/MDI/Dailog based" you choose the last one.
0
 

Accepted Solution

by:
bdwibedy earned 50 total points
ID: 1169233
Hello Perry001,
(Here I assume that u know little bit of VC++)
Although ur problem is little bit not descriptive I am providing a solution for it.
1.First u create a new workspace PAYSLIP and make it Dialog Based application.
2. Go to resources of the application and u will get the main dialog.
3. Add the necessary edit boxes, static text and buttons on ur dialog box from the control menu.
4.On OnInitDialog u initialize the edit boxes value to null.
5.Create member variables for the edit boxes from the class wizard menu.
6.Create functions for Calculate and clear button
7.In the program, after entering the name(last name and first name) and agin after enering pay rate, hours worked etc, make updatedata(true).
8.On CalculateFunction , write the code like, total=payrate*hours worked.
9.On clear function make all edit boxes member variables null and
make updatedata(true)
This is the solution of ur problem.



0
 

Expert Comment

by:bdwibedy
ID: 1169234
No Comments
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now