Ask a question to Desklib · AI bot

Ask NowBETA

Examples of Code Errors and GUI Designs in a Calculator Program

3 Pages666 Words268 Views
   

Added on  2019-09-13

About This Document

This text appears to be a series of examples of code and their outputs. The first two examples show errors, one lexical and one syntax. The next four examples show different versions of a calculator interface and a radio button test, with the final example showing nested panels. The actual output from the program is not provided and needs to be filled in by the user.

BookmarkShareRelated Documents
Example 1: Lexical error File Contents (file "input1.txt")Actual Output Window "Calculator" (200, 200) Layout Flow():Textfield 20; Panel Layout Grid(4, 3, 5, 5)| Button "7"; Button "8"; Button "9"; Button "4"; Button "5"; Button "6"; Button "1"; Button "2"; Button "3"; Label ""; Button "0"; End;End.Lexical error! (please provide details)Fill here the output from your program.Example 2: Syntax errorFile Contents (file "input2.txt")Actual Output Window "Calculator" (200, 200) Layout Flow(LEFT):Textfield 20; Panel Layout Grid(4, 3, 5, 5): Button "7"; Button "8"; Button "9"; Button "4": Button "5"; Button "6"; Button "1"; Button "2"; Button "3"; Label ""; Button "0"; End;End.Syntax error! (please provide details)Fill here the output from your program.
Examples of Code Errors and GUI Designs in a Calculator Program_1

Found this document preview useful?

Related Documents
Introduction to The First Programming Project
|3
|758
|389

avoid possible confusions on how the output of this project
|3
|732
|581