Solved

Visual C++ Problem!!!!

Posted on 1998-08-02
4
179 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

809 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