[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Visual C++ Problem!!!!

Posted on 1998-08-02
4
Medium Priority
?
186 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 100 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

650 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