Free

Programming - Essay Example

Comments (0) Cite this document
Summary
The owner of the purchase system was able to identify the problem in the limitation of age of system users. The solution was suggested to be automation. The next step was analysis, to weigh the impact of the current system which could…
Download full paperFile format: .doc, available for editing
GRAB THE BEST PAPER92.8% of users find it useful
Programming
Read TextPreview

Extract of sample "Programming"

Logic and Programming Programming A problem Analysis Chart Given information The information provided is that children below 18 Years of age should not be considered as customers for purchases.
Required Results
Processing required
Solution Alternatives
The only alternative is to use the “if” condition to test whether the age is greater than, equal to or less than 18.
2. A flowchart
3. A chart showing input, output, and processing
Year of Birth
YOB
Year Today
YT
Age
(YT-YOB)
Status
Accepted / Rejected
4. Algorithm (Pseudo code)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int dif, yob, ytoday;
yob = Convert.ToInt32(textYearOfBirth.Text);
ytoday = Convert.ToInt32(textBoxToday.Text);
dif = ytoday - yob;
label1.Text = Convert.ToString(dif);
if (dif < 18)
{
MessageBox.Show("Sorry, Request Rejected. You are too young");
}
else

{
MessageBox.Show("Your Registration was accepted");
}
}

}
}
Output
Age more than 18
Age below 18
5. Problem Solving Description
The first step was Problem Identification. The owner of the purchase system was able to identify the problem in the limitation of age of system users. The solution was suggested to be automation. The next step was analysis, to weigh the impact of the current system which could lead to non-compliance with the government directives, restricting minors from using the purchase system.
The third step was Requirement Specification to decide on the input and the output data items such as the year of birth, the current year and the age. The next step was solution Design. The design of the system was done using flow chart and process flow. The fifth step was the implementation of the solution. The algorithm (pseudo code) was created in C#, as a graphical user interface application. The final stage was to test the pseudo code and to observe the system response for different ages.
Top of Form Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Programming Essay Example | Topics and Well Written Essays - 250 words”, n.d.)
Programming Essay Example | Topics and Well Written Essays - 250 words. Retrieved from https://studentshare.org/logic-programming/1651534-programming
(Programming Essay Example | Topics and Well Written Essays - 250 Words)
Programming Essay Example | Topics and Well Written Essays - 250 Words. https://studentshare.org/logic-programming/1651534-programming.
“Programming Essay Example | Topics and Well Written Essays - 250 Words”, n.d. https://studentshare.org/logic-programming/1651534-programming.
  • Cited: 0 times
Comments (0)
Click to create a comment or rate a document

CHECK THESE SAMPLES OF Programming

Television Programming

...? Television Programming Task Television, found in most homes all over the world, has an enormous impact on the everyday life of people. It has an enormous influence on people’s culture. It is in light of the impact that the television has on the people lives that we would want to know how much of the American culture is advanced through programming and advertising and how the said culture is perceived. Introduction Advertising and programming fall under commercial television. Advertising and programming does not only promote the advertisements or the programme that one is watching they also contribute widely in changing ones beliefs mood and attitude about a particular thing or a particular activity. Everyone is responsible... for what they...
6 Pages(1500 words)Essay

Programming Languages

...?Introduction Computer programming languages are engineered by human beings for conveying instructions to the machines solving their problems. The computer programming languages have tremendously been increased (developed), used and discarded, since the computer science recognized as a distinct academic discipline. As the computer science is an evolving and dynamic discipline, therefore, it is difficult to categorize the already developed computer languages. Some of the authors have classified the computer languages into three (3) categories include: machine level language, assembly level language and high level language (Venit and Drake, 2010). Whereas, the other authors have categorized the computer languages keeping in view... the...
7 Pages(1750 words)Essay

Game Programming

...it in ordered list OPEN list. Create a list CLOSED. This is initially an empty list. Each node 'n' maintains the following: g(n) = the cost of getting from the natal node to 'n' h(n) = the estimate, according to the heuristic function, of the cost of getting from n to the goal node. f(n) = g(n) + h(n); intuitively, this is the estimate of the best solution that goes through n. If OPEN is empty, exit with failure in algorithm. Select first node on OPEN. Remove it from OPEN and put it on CLOSED. This is node 'n'. If 'n' is goal node, exit the program. The solution is obtained by treating a path backwards along arcs in the tree from the node to n. Expand node n. This will generate successors. Read the list OPEN...
10 Pages(2500 words)Assignment

Programming

... in the program. b) void Time::setTime (int hh, int mm, int ss); { hour = (hh>=0 && hh<24) h :0; mnute = (mm>=0 && mm<=60) m : 0; second = (ss>=0 && ss <60 ) s : 0; } Time::Time() { hh=mm=ss=0; } c) Int Time::timesAreEqual (Time &tl, Time &t2); { if ( t1.hour= t2.hour && t1.minute == t2.minute && t1.second == t2.second ); return 1; else return 0; } Question 28 a) A pointer is a variable that holds some memory address. b) An array in C++ is a variable that holds subsequent memory locations up to the number declared by the user. The first element in the array has the index 0. d) when the statements q1 = &x; and q2 = &y; are executed pointer q1 get the value of x and q2 gets the value of y. x 78 y 96 x=78 y=96... Question 29 a) Dynamic data structures can grow or shrink according to the wish of the programmer. Static values do not hold this property; once declared they remain fixed to the defined length. b) After the assignment chPtr = new char[10]; chPtr content will be the memory location where char[10] is stored. Question 30 a) Encapsulation in object oriented programming is a technique that integrates data and operations to make an object. The benefits of encapsulation are abstraction and security. Abstraction in the sense that the operations and properties of an object are hidden from the outside world who is not...
9 Pages(2250 words)Research Paper

Java Programming

...Section Program I have designed the calculator using JAVA. Swing is the concept that has been employed in it. I have used many features of JAVA in designing the calculator. From the line no 5 to 26 I have used the inbuilt packages in JAVA library and used the concept of inheritance to import the required files using the import statement. In the line no 28, I have defined a class which is the basis of encapsulation in JAVA. Encapsulation is the mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse. As we look at the line no 28 we find the syntax of the class as public class Calculator extends JFrame implements ActionListener. Here we have used the access...
6 Pages(1500 words)Essay

Linear Programming

...Summary Brass Ltd. is in need of an optimal solution to its product manufacturing problem. The problem involves manufacturing of two products amid a number of constraints such as availability of capacity, regulations on maximum output and controlled selling prices. The purpose of the report is to find an optimal solution to this problem using a linear programming model. The model has been solved using excel solver and the optimal solution is obtained. Further, a sensitivity analysis has been used to consider the impact of capacity increase on profitability. The report concludes with a few recommendations. 1. Problem Statement Brass Ltd. manufactures two products named Masso and Russo. These products require machining and...
5 Pages(1250 words)Assignment

Computer Programming

...Computer Programming Assignment [Insert [Insert Grade [Insert Introduction Computer programming is art of developing computer software. The aim of programming is to create instructions that computers will use in order to perform specific operations. This report will state how the program was developed to help the Chinese packing company use an order system to streamline orders from their user. System Requirements While making an order, the system should allow the user to specify the following requirements: a) The size of the container (length, height, width and/or radius). b) The grade of the card. c) Colouring required; no colouring, one or two colours. d) Whether they need any reinforcement at the bottom. e) Whether... ...
4 Pages(1000 words)Coursework

System Programming

...System Programming By This research is aimed at proving a hypothesis “with the improvements in the tools provided with or available for modern operating systems, the need to write scripts to assist in administering or investigating computer systems has been significantly reduced or even eliminated”. In this paper, I would give arguments to prove that we still want new scripts and programming applications because the tools and applications provided by an operating system cannot be used to perform every kind of job. There are many tasks which require writing and running new scripts and codes. This paper discusses the arguments of various researchers to prove this hypothesis. Introduction Without a doubt, at...
8 Pages(2000 words)Essay

Socket programming

...Socket Programming of Learning Introduction In computer networking, a socket represents a technology that allows communication between application via a standard mechanism present in operating system and network hardware. Socket programming thus involves the creation of manner in which socket application program interface (APIs) can be used in the establishment of communication links involving the local and remote processes. Nowadays, many of current software packages depend on socket technology (Nagel & Serban, 2004). Basically, a socket presents a point of connection that involves software installed in two different computers. However, sockets can also be used to facilitate...
6 Pages(1500 words)Research Paper

Java PROGRAMMING

...Java Programming al Affiliation Java Programming The term structured programming in the simplest and most basic sense refers to the subset of procedural programming that are modified and enforced in a logical manner and structure. The aim and objective of structured programming is to enable the program to be more effective, efficient and for the users to understand and comprehend them. Object programming on the other hand refers to a programming technique that is founded on the aspects of data structures which imbibe the data (Hughes, 2009). It is important to note and record that the data exist in fields...
1 Pages(250 words)Essay
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.

Let us find you another Essay on topic Programming for FREE!

Contact Us