Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PROJECT 2 Introduction The purpose of this project component is to provide a first experience in the actual writing of computer programs. Using a relatively
PROJECT Introduction The purpose of this project component is to provide a first experience in the actual writing of computer programs. Using a relatively simple introductory scripting language Python you will create program code in an editor Notepad save it to your disk, and run it from the command line prompt. You will gain experience in planning, writing, debugging, documenting, and running simple programs. Learning Python serves as a convenient steppingstone to more complex objectoriented languages, such as Java. In this project, you will use online resources, including downloadable Python tools and tutorials. Before writing programs, it is useful to plan the programming steps and actions by writing an algorithm. An algorithm is a set of plain English language commands or steps, each of which is then replaced by the appropriate command line for the programming language used. This technique becomes less useful when using complex objectoriented languages such as Java, but may be helpful in the early stages of learning to design programs. You will write algorithms for your first two programming exercises in this project. The project will be graded for completeness and correct functioning of programs. Acquiring the Tools Download and install Python version or higher by following the instructions at the Python download site. The downloaded file will be called Pythonexe. After downloading, run this file to complete the installation. You can view the installed components from your "Start" list. Writing Algorithms In the traditional approach to programming, the program is seen as a series of steps, which may include branches and loops. A branch occurs when a program may go in two or more different directions, depending upon a logical condition or a choice made by the user. A loop is a situation where a particular step, or series of steps, may be repeated until a certain condition or choice occurs. The following simple example of an algorithm includes both elements, and describes a simple program for performing addition or multiplication. Step display the program name "Addition and Multiplication" Step display the options menu AddMultiply Step request and store input of user choice A or M as "choice" Step if "choice" does not equal A or M go to Step Step request and store the first number to be used as variable Step request and store the second number to be used as variable Step if "choice" A go to Step Step if "choice" M go to Step
PROJECT
Introduction
The purpose of this project component is to provide a first experience in the actual writing of
computer programs. Using a relatively simple introductory scripting language Python you will
create program code in an editor Notepad save it to your disk, and run it from the command
line prompt.
You will gain experience in planning, writing, debugging, documenting, and running simple
programs. Learning Python serves as a convenient steppingstone to more complex
objectoriented languages, such as Java.
In this project, you will use online resources, including downloadable Python tools and tutorials.
Before writing programs, it is useful to plan the programming steps and actions by writing an
algorithm. An algorithm is a set of plain English language commands or steps, each of which is
then replaced by the appropriate command line for the programming language used. This
technique becomes less useful when using complex objectoriented languages such as Java,
but may be helpful in the early stages of learning to design programs. You will write algorithms
for your first two programming exercises in this project.
The project will be graded for completeness and correct functioning of programs.
Acquiring the Tools
Download and install Python version or higher by following the instructions at the Python
download site.
The downloaded file will be called Pythonexe. After downloading, run this file to complete
the installation. You can view the installed components from your "Start" list.
Writing Algorithms
In the traditional approach to programming, the program is seen as a series of steps, which may
include branches and loops. A branch occurs when a program may go in two or more different
directions, depending upon a logical condition or a choice made by the user. A loop is a situation
where a particular step, or series of steps, may be repeated until a certain condition or choice
occurs.
The following simple example of an algorithm includes both elements, and describes a simple
program for performing addition or multiplication.
Step display the program name "Addition and Multiplication"
Step display the options menu AddMultiply
Step request and store input of user choice A or M as "choice"
Step if "choice" does not equal A or M go to Step
Step request and store the first number to be used as variable
Step request and store the second number to be used as variable
Step if "choice" A go to Step
Step if "choice" M go to Step
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started