programming project part 6

21
Billings 1 Bobby E. Billings Professor Scott D. Vanselow COP 1000 - 170 Introduction to Computer Programming November 16, 2014 INTRODUCTION: The following represents the sixth and final portion of an ongoing programming project throughout the Fall 2014 semester of Professor Scott D. Vanselow’s “Introduction to Programmingcourse. This final segment is a compilation of parts 3, 4, and 5 into a single PDF file. The 3 parts are clearly designated with their own header titles. This project began with an introduction to the Python language, which included the usage of Python’s IDLE utility. With Python we learned the underlying fundamentals of coding which appear to be similar in most other languages. I found it to be an excellent foundation for building upon. Part 4 of the programming project was an introductory to the Visual Basic language through the use of Visual Studios, which I found easy to work with once I had time to experiment. I especially enjoyed seeing the results of code translated into a GUI environment. Part 5 of this project challenged me with learning some of the basics of the Java language. My first attempt at the assignment was with the NetBeans IDE, but time constraints forced me to opt for the Programmr.com site to complete the task. Overall, this was a rewarding project for me. I found it to be an excellent method of learning Python, as well as a great introduction to different IDE’s. Further, it revealed the similarities between the coding languages, and taught the importance of debugging. CONTENTS: Page 2 - 14 Programming Part 3 Page 15 – 18 Programming Part 4 Page 19 – 21 Programming Part 5

Upload: bobby-billings

Post on 20-Aug-2015

86 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Programming Project Part 6

Billings 1

Bobby E. Billings

Professor Scott D. Vanselow

COP 1000 - 170 Introduction to Computer Programming

November 16, 2014

INTRODUCTION:

The following represents the sixth and final portion of an ongoing programming project

throughout the Fall 2014 semester of Professor Scott D. Vanselow’s “Introduction to Programming”

course. This final segment is a compilation of parts 3, 4, and 5 into a single PDF file. The 3 parts are

clearly designated with their own header titles.

This project began with an introduction to the Python language, which included the usage of

Python’s IDLE utility. With Python we learned the underlying fundamentals of coding which appear to

be similar in most other languages. I found it to be an excellent foundation for building upon. ‘

Part 4 of the programming project was an introductory to the Visual Basic language through the

use of Visual Studios, which I found easy to work with once I had time to experiment. I especially

enjoyed seeing the results of code translated into a GUI environment.

Part 5 of this project challenged me with learning some of the basics of the Java language. My

first attempt at the assignment was with the NetBeans IDE, but time constraints forced me to opt for the

Programmr.com site to complete the task.

Overall, this was a rewarding project for me. I found it to be an excellent method of learning

Python, as well as a great introduction to different IDE’s. Further, it revealed the similarities between

the coding languages, and taught the importance of debugging.

CONTENTS:

Page 2 - 14 Programming Part 3

Page 15 – 18 Programming Part 4

Page 19 – 21 Programming Part 5

Page 2: Programming Project Part 6

Billings 2

The following programs represent part 3 of the programming project for my Introduction to

Programming course. The ten programs that were designed in the previous two projects are now

incorporated into a singular menu driven program.

Page 3: Programming Project Part 6

Billings 3

Page 4: Programming Project Part 6

Billings 4

Page 5: Programming Project Part 6

Billings 5

Page 6: Programming Project Part 6

Billings 6

Page 7: Programming Project Part 6

Billings 7

Page 8: Programming Project Part 6

Billings 8

Page 9: Programming Project Part 6

Billings 9

Page 10: Programming Project Part 6

Billings 10

Page 11: Programming Project Part 6

Billings 11

Page 12: Programming Project Part 6

Billings 12

The following is a series of excerpts from the menu driven program (Code shown above). In the

interest of space in this document, the introduction screen is removed after its first appearance below.

During the actual running of the program, this introduction will appear each time the user chooses to

run it again, so that the user’s options are always visible on the user’s current screen.

Page 13: Programming Project Part 6

Billings 13

Page 14: Programming Project Part 6

Billings 14

Page 15: Programming Project Part 6

Billings 15

The following represents part 4 of my programming project for COP 1000. (Introduction to

Programming) There are two divisions to this portion of the project. The first, is the Test Average

program from the Language Companion in Visual Basic. The Test Average program was an introduction

to the Visual Studio format. While working on this first section, I gained some familiarity with the toolset

environment and learned the locations of the various tools and tabs. I also came to understand, to a

limited degree, some of the differences between the Visual Basic language and that of Python.

The second part of this assignment was to choose any programming exercise from the textbook.

Then, in Visual Basic or C#, we were to create a graphical user interface using the chosen program. I

selected exercise 5 from chapter 4, titled “Color Mixer”. I felt that it presented a sufficient challenge,

and that it would translate well into a graphical user interface.

I found the auto-fill ability of Visual Studio to be very helpful. There were many tooltip

information bars that contained much useful information as well.

Page 16: Programming Project Part 6

Billings 16

The Test Average Program Code:

The Test Average Program Form:

Page 17: Programming Project Part 6

Billings 17

Chapter 4 Exercise 5 “Color Mixer” Program Code:

Page 18: Programming Project Part 6

Billings 18

Chapter 4 Exercise 5 “Color Mixer” Program Form:

Page 19: Programming Project Part 6

Billings 19

The fifth part of Professor Vanselow’s Introduction to Computer Programming (COP 1000) is

represented below. This first portion of this project required us to reproduce program 2-5 from the Java

Language Companion and to run it using one of five options. Initially, I attempted this with the

NetBeans IDE, but eventually opted for the more user friendly environment of the Programmr.com site.

This first section was a decent introduction to the Java language that helped to speed things along for

the second segment.

The second half of this project entailed solving at least one exercise from any of the chapters in

the textbook. (Programming Logic and Design 3rd Edition, authored by Tony Gaddis) I chose to work with

exercise 4 from chapter 3, titled, “Automobile Cost”. I had completed this program in one of our earlier

assignments using the Python language, but I found it to be more of a challenge in Java. I attribute this

greater difficulty to a current lack of experience with that language in particular, but it is my goal to

eventually master Java as well.

Section 1: The GetInput code and it’s GUI

Page 20: Programming Project Part 6

Billings 20

Section 2: Chapter 3 Exercise 4 “Auto Costs”

Page 21: Programming Project Part 6

Billings 21

Chapter 3 Exercise 4 “Auto Cost” GUI