Assignment 2 - Module 3
.docx
keyboard_arrow_up
School
Algonquin College *
*We aren’t endorsed by this school
Course
8116
Subject
Computer Science
Date
Jan 9, 2024
Type
docx
Pages
5
Uploaded by BarristerFog13090
Samantha-Rae Belanger
041059377
November 19
th
2023
Assignment #2 – Java Programming Structure:
Flowchart, Pseudocode
Intro to computer Programming
23F_CST8116_472
Prof: Dr. Istiaque Shahriar
1 | P a g e
Samantha-Rae Belanger
041059377
November 19
th
2023
Java Programming Structure: Flowchart, Pseudocode
Algorithm
W
riting an algorithm
1.
What steps must be followed when writing a complete algorithm?
The first step is determining what you want your code to accomplish, whether it be a task or solving a problem. From there, the second step is to decide on a starting point. To decide on a starting point, you must consider what data is available and where it’s located, which formulas are applicable, the rules to the data being worked with and how the data values relate to each other. The third step is to find the end point of the algorithm. To do so, its beneficial to ask what
will be learned from the process, what changes from start to end and what will be added, or no longer exist? The next step is to list the steps from start to finish, using broad steps. The fifth step is to decide how you’ll accomplish each step and incorporate some of the code into the algorithm. The last step is to review the algorithm and evaluate the process. Before using the algorithm to write your program, ensure the following questions are answered. Does your algorithm accomplish the task? Does it have defined inputs/outputs? Is the end goal specific enough? Can any of the steps be simplified? And is your algorithm guaranteed to end with the correct result? If you’re satisfied with the answers to these questions, you’re ready to start writing your program. (Showers, 2023)
2 | P a g e
Samantha-Rae Belanger
041059377
November 19
th
2023
Flowcharts
Symbols
2.
Which symbols are used for creating flowcharts?
The 6 most used symbols for flowcharting are as follows:
Symbo
l
Name
Function
Circle/
Connector
Connects sections of the flowchart. This symbol is useful in a flowchart if
information becomes complex or spreads over more than one page.
Rectangle/
Process
Any internal operations required, such as arithmetic instructions are
indicated by the action/process symbol in a flowchart.
Parallelogram/
Input/Output
Program instructions that take input from input devices and display
output on output devices is indicated using this symbol in a flowchart.
Oval / Terminal
Terminal is the first and last symbol in a flow chart. It indicates the start
or end of the flowchart.
Diamond/
Decision
Represents a decision point in a flowchart. Decision based operations
such as yes/no or true/false questions.
Arrows/ Flow lines
Arrows indicate the direction of the progression of the program.
(Geeks for geeks, 2018.)
Pseudocode
3.
What is Pseudocode?
A Pseudocode is a step-by-step description of an algorithm written in plain English. It has no syntax. It is an important part of designing an algorithm as it helps the programmer in planning the solution to the problem as well as the reader in understanding the approach to the problem.(Geeks for geeks, 2019.)
3 | P a g e
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
C PROGRAM / C LANGUAGEMake a C program array
arrow_forward
Java
arrow_forward
JAVA PROGRAM
Introduction
The goal of this project is to develop a nontrivial computer program in the Java language by applying elementary programming language concepts learned so far. Specifically, the concepts to be used for this project include simple input/output, selection, iteration (loops), and possibly one-dimensional arrays (although the use of arrays is not required for completing this project).
Developing a Java program for printing a calendar
Statement of Problem: Develop a Java program to print a calendar for the year that the user will provide as an input to the program. Use the Eclipse IDE (on a Windows or Mac machine). Your program must fulfill the following requirements:
Your program should prompt and receive as input an integer value representing the year for which the user wishes to have a calendar printed. This integer must be in the range from 1780 through 2040.
In case the user input a year that is outside this range, your program must print out a message such as…
arrow_forward
Alert dont submit AI generated answer.
arrow_forward
Computation theory The study of computers When compared to passing by value, what are the advantages and disadvantages of passing by reference?
arrow_forward
Syntax with logic
arrow_forward
Jdbc java program
Note: please do a jdbc example, you can take any scenario it has to contain student names and their information's.
Please provide a clear and big photos of output
arrow_forward
1-Which of the following is not a part of the overall cost of a programming language?
O Cost of executing programs
O Cost of compilers
O Cost of the host computer
O Cost of training programmers
2-Which of the following is not a primitive data type?
O Boolean
O A single-dimensional array of integers
O Floating point
O Integer
3-A fundamental rule of a subprogram is that
O Each subprogram has a single exit point
O Each subprogram has a single entry point
O Each subprogram has the same entry and exit points
O The number of entry and exit points is arbitrary
arrow_forward
Computer science What are the advantages and disadvantages of passing by reference versus passing by value?
arrow_forward
Ruby language bone lan. Output before
arrow_forward
I need some help coding
Make a java game using :
use fundamental programming concepts
create one and two dimensional arrays and manipulate data (primitives or objects) in them
apply modular design concepts to programs
use object oriented programming concepts (classes, objects, inheritance)
search and sort data structures (arrays or structures from collections framework)
use recursion
create a simple graphical user interface (GUI)
arrow_forward
Computer Science
Most of Java reflection issues with the code are caught at compile-time and never make it into production applications. Java reflection coding is easy and issues are easy to catch and address at compile-time.. TRUE or FALSE
arrow_forward
Code to _develop software using a regular expression module to process the following phone numbers.you are to extract the area code,trunk, number, and optionally an extension for each number. You may use the regular expression module in the language of your choice, please note that we covered the syntax for Perl 5 which is imitated by python 3, javascript, C++, and C#. Java, too. 800-555-1212 800 555 1212 800.555.1212 (800) 555-1212 1-800-555-1212 800-555-1212-1234 800-555-1212x1234 800-555-1212ext. 1234 1-(800) 555.1212 #1234 Reporting: Demonstrate your results by outputting the extracted information for each input number. Your report should be one page and it should be include a discussion of your use of the regular expression module..
arrow_forward
Y7
Construct a spreadsheet that estimates what the maximum social security payment will be in 40 years based on the following criteria: Retiring at age 70 (current maximum monthly Benefit is $4,555) The average Cost-Of-Living-Adjustment (COLA) of 3% Please build a spreadsheet like the one used in last weeks module that shows the year (working backwards from age 70 in forty years (ie your hypothetical is of a 30 year old)
Using that spreadsheet, tell me how much that payment would be in todays dollars assuming a 2.5% inflationary factor
arrow_forward
Fill in the Gaps
Code in C language
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Related Questions
- C PROGRAM / C LANGUAGEMake a C program arrayarrow_forwardJavaarrow_forwardJAVA PROGRAM Introduction The goal of this project is to develop a nontrivial computer program in the Java language by applying elementary programming language concepts learned so far. Specifically, the concepts to be used for this project include simple input/output, selection, iteration (loops), and possibly one-dimensional arrays (although the use of arrays is not required for completing this project). Developing a Java program for printing a calendar Statement of Problem: Develop a Java program to print a calendar for the year that the user will provide as an input to the program. Use the Eclipse IDE (on a Windows or Mac machine). Your program must fulfill the following requirements: Your program should prompt and receive as input an integer value representing the year for which the user wishes to have a calendar printed. This integer must be in the range from 1780 through 2040. In case the user input a year that is outside this range, your program must print out a message such as…arrow_forward
- Jdbc java program Note: please do a jdbc example, you can take any scenario it has to contain student names and their information's. Please provide a clear and big photos of outputarrow_forward1-Which of the following is not a part of the overall cost of a programming language? O Cost of executing programs O Cost of compilers O Cost of the host computer O Cost of training programmers 2-Which of the following is not a primitive data type? O Boolean O A single-dimensional array of integers O Floating point O Integer 3-A fundamental rule of a subprogram is that O Each subprogram has a single exit point O Each subprogram has a single entry point O Each subprogram has the same entry and exit points O The number of entry and exit points is arbitraryarrow_forwardComputer science What are the advantages and disadvantages of passing by reference versus passing by value?arrow_forward
- Ruby language bone lan. Output beforearrow_forwardI need some help coding Make a java game using : use fundamental programming concepts create one and two dimensional arrays and manipulate data (primitives or objects) in them apply modular design concepts to programs use object oriented programming concepts (classes, objects, inheritance) search and sort data structures (arrays or structures from collections framework) use recursion create a simple graphical user interface (GUI)arrow_forwardComputer Science Most of Java reflection issues with the code are caught at compile-time and never make it into production applications. Java reflection coding is easy and issues are easy to catch and address at compile-time.. TRUE or FALSEarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning