Multi-function Scientific Calculator An Introduction to Graphical User Interfaces (GUI)

Slides:



Advertisements
Similar presentations
Chapter 16 Graphical User Interfaces John Keyser’s Modifications of Slides by Bjarne Stroustrup
Advertisements

Chapter 6 In introduction to System Software and Virtual Machine ***Assembly Language.
Designing OCX Components Supervised by : Dr. Driss Kettani.
55 CHAPTER SYSTEM SOFTWARE. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved. 5-2 Competencies Describe the differences between system software.
Chapter 1- Visual Basic Schneider1 Chapter 1 An Introduction to Computers and Visual Basic.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Graphical Tree-Based Scientific Calculator: CalcuWiz Will Ryan Christian Braunlich.
Access Tutorial 10 Automating Tasks with Macros
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
Introduction 01_intro.ppt
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
 To add numbers in scientific notation: 1) Add the constants 2) Keep the exponent the same  Example: (2.1 x 10 5 ) + (3.2 x 10 5 ) = ( ) x 10.
Lesson 4 MICROSOFT EXCEL PART 1 by Nguyễn Thanh Tùng Web:
Operating Systems What do you have left on your computer after you strip away all of the games and application programs you bought and installed? Name.
AS Computing Software definitions.
Microsoft Visual Basic 2005: Reloaded Second Edition
Understanding Code Compilation and Deployment Lesson 4.
Computer Programming and Basic Software Engineering 9 Building Graphical User Interface Working with Unmanaged Code.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Section 2 Software.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Chapter 1- Visual Basic Schneider1 Chapter 1 An Introduction to Computers and Visual Basic.
Applets and Frames CS 21a: Introduction to Computing I First Semester,
Integrated Development Environment (IDE)
1 Introduction to C# Programming Console applications No visual components Only text output Two types MS-DOS prompt - Used in Windows 95/98/ME Command.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 13 Introduction to Classes.
Introduction to Computer System
33 CHAPTER General- Purpose APPLICATION SOFTWARE.
Lection №5 Modern integrated development environment.
3.1 System Software. Overview Describe the purpose and functions of an operating system including the basic start- up sequence of a computer. Identify.
Microsoft Access 2013 ®® Tutorial 10 Automating Tasks with Macros.
1 Introduction to C# Programming Console applications No visual components Only text output Two types MS-DOS prompt - Used in Windows 95/98/ME Command.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Introduction to Matlab & Data Analysis 2015 In this tutorial we will: Build a practical application using GUIDE Learn more about graphical user interface.
1 CHAPTER 3 MODULAR PROGRAMMING. 2 Introduction  A library in C is a collection of general purpose and related functions.  2 types of libraries: Standard.
Chapter 10 Classes and Objects In-Depth. Chapter 10 A class provides the foundation for creating specific objects, each of which shares the general attributes,
Visual C++ Programming: Concepts and Projects Chapter 12B: Linked List (Tutorial)
CITA 342 Section 2 Visual Programming. Allows the use of visual expressions (such as graphics, drawings, or animation) in the process of programming.
IST 222 Day 3. Homework for Today Take up homework and go over Go to Microsoft website and check out their hardware compatibility list.
Java Beans. Definitions A reusable software component that can be manipulated visually in a ‘builder tool’. (from JavaBean Specification) The JavaBeans.
Chapter 11: Introduction to VBA Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
MODULAR ORGANIZATION Prepared by MMD, Edited by MSY1.
1 How to Install OpenGL u Software running under Microsoft Windows makes extensive use of "dynamic link libraries." A dynamic link library (DLL) is a set.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 6 Today’s Windows Windows Vista and Windows 7 McGraw-Hill.
Credit:  An operating system is the program that is loaded into the computer  coordinates all the activities among.
Updating to X6 Mike DeButts. Updating to X6 How to Install X6 What Not to do when Updating to X6 Migration Utility New File Locations introduced in X6.
Introduction to Programming
C++: Functions, Program Compilation, Libraries Modified from CS101 slides, which are by JPC and JWD © 2002 McGraw-Hill, Inc.
Creating Java Applications (Software Development Life Cycle) 1. specify the problem requirements - clarify 2. analyze the problem - Input? Processes? Output.
Introduction to Classes and Objects CS-2303, C-Term C++ Program Structure Typical C++ Programs consist of:– main –A function main –One or more classes.
Chapter 5 Introduction to Defining Classes Fundamentals of Java.
Lab (6) Introduction to Assembly Language 1. Introduction Objectives : Learn EMU8086 installation EMU8086 environment Learn how to: Assemble instructions.
Maths in SmallBasic Learning Objectives
Introduction to Visual Basic 2008 Programming
Chapter 4 – Introduction to Operating System Concepts
Microsoft Access 2003 Illustrated Complete
Computer Software CS 107 Lecture 2 September 1, :53 PM.
Visual Basic.
CIS16 Application Development Programming with Visual Basic
Divide the number in C by 10.
3.1 System Software.
System Programming By Prof.Naveed Zishan.
Introduction to Classes and Objects
Presentation transcript:

Multi-function Scientific Calculator An Introduction to Graphical User Interfaces (GUI)

Group Members Jaemar Miller (Foundation) Jaemar Miller (Foundation) Kristie Powell (GUI) Kristie Powell (GUI) Michael Adderley (Link to GUI) Michael Adderley (Link to GUI)

Objective To grasps the concepts of Graphical User Interfaces (GUI) To grasps the concepts of Graphical User Interfaces (GUI) To present those concepts so this presentation can be used in future Software Hardware Integration classes. To present those concepts so this presentation can be used in future Software Hardware Integration classes.

Characteristics Pointers Pointers Classes Classes Strings Strings Inheritance Inheritance

Hierarchy Chart Link to GUI CalcDlg.cpp, CalcDlg.h GUI Calc.h, Calc.cpp, resource.h, stdafx.cpp, stdafx.h Foundation Calculator.cpp, calculator.h, driver.h

Foundation Calculator.h has the prototype of the functions needed. Such as the add, subtract, multiply, divide and square functions.

Foundation Calculator.cpp has the definitions of the functions of the scientific calculator. The functions are also constant as they do not change the values sent to them but return a calculated value.

Foundation The Driver.cpp file was not needed for the GUI, but was designed to show an example of a simple calculator if we did not create a GUI for the project. The program uses function to do the arithmetic calculations.

Foundation The function calc here is check the choice of the user, whether to add, subtract, multiply and divide.

Foundation The main function of the driver was query the user of whether, they want to add, subtract, multiply or divide

Foundation In a test we subtracted 3 from 5 and displayed the answer which was 2

GUI

GUI calc.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CCalcApp application class. This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CCalcApp application class.

GUI calc.cpp This is the main application source file that contains the application class CCalcApp. This is the main application source file that contains the application class CCalcApp.

GUI Stdafx.cpp, Stdafx.h These files are used to build a precompiled header (PCH) file named Calc.pch and a precompiled types file named StdAfx.obj. These files are used to build a precompiled header (PCH) file named Calc.pch and a precompiled types file named StdAfx.obj.

GUI Resource.h This is the standard header file, which defines new resource IDs. Microsoft Visual C++ reads and updates this file. This is the standard header file, which defines new resource IDs. Microsoft Visual C++ reads and updates this file.

GUI Resource Files Calc.ico Calc.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file Calc.rc. This is an icon file, which is used as the application's icon. This icon is included by the main resource file Calc.rc.

GUI Resource Files Calc.rc Calc.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Visual C++. Your project resources are in This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Visual C++. Your project resources are in 1033.

GUI Resource Files Calc.rc2 Calc.rc2 This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file. This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file.

GUI Resource Files Calc.manifest Calc.manifest Application manifest files are used by Windows XP to describe an applications dependency on specific versions of Side-by-Side assemblies. The loader uses this information to load the appropriate assembly from the assembly cache or private from the application. The Application manifest maybe included for redistribution as an external.manifest file that is installed in the same folder as the application executable or it may be included in the executable in the form of a resource. Application manifest files are used by Windows XP to describe an applications dependency on specific versions of Side-by-Side assemblies. The loader uses this information to load the appropriate assembly from the assembly cache or private from the application. The Application manifest maybe included for redistribution as an external.manifest file that is installed in the same folder as the application executable or it may be included in the executable in the form of a resource.

Link to GUI In order to change driver.cpp to a GUI calculator there must be a link.

Link to GUI Objectives To create implementation files (CalcDlg.cpp and CalcClg.h) that contain the functions and definitions for each button on the calculator. To create implementation files (CalcDlg.cpp and CalcClg.h) that contain the functions and definitions for each button on the calculator.

Link to GUI This is the header file for calcdlg.h. This header file defines the class CCaldilg This is the header file for calcdlg.h. This header file defines the class CCaldilg

Link to GUI Calcdlg.h (cont)

Link to GUI CalcDlg.cpp is the key code. It contains all of the definitions for the functions mentioned in the header file. CalcDlg.cpp is the key code. It contains all of the definitions for the functions mentioned in the header file.

Link to GUI calcdlg.cpp (cont)

Improvements Add more functions such as square root etc. Add more functions such as square root etc. Utilize the math library and add sine and cosine buttons. Utilize the math library and add sine and cosine buttons.

References C++ Program Design 2 nd Edition, James P. Cohoon/ Jack Davidson C++ Program Design 2 nd Edition, James P. Cohoon/ Jack Davidson