Software Develpment

Software Development


Before you have a workable software, it is a good idea that you have to follow the software development process. If the software you want to build is small, you may not need to follow it but if the software is large that you need to spend a lot of resources(time, money, human) to complete it, you need to have a careful plan. Otherwise you may take risks to lose a lot of resources because your software can not be an acceptable solution for your customers.

Software development is a multi steps process that involve understanding problems to be solved, designing the solution, coding the software, and testing the software product.

For example, to calculate the parking fee of a public parking lot, how do you go about doing this?

Understanding the problem
The first step you will do is understanding the problem. If you don't understand the problem to be solved, how can you solve the problem? Therefore, a good software building is started with a good understanding of the problem. To understand the problem you need to read the requirements statement carefully. After you understand the problem, you should clarify you understanding with the users and system analysts by asking questions to confirm your understandings.
For example, after reading the requirements statement, you should ask several questions to clarify:
-How the parking fee is calculated?
-Can the parking fee vary depending types of vehicles and time?
-Do they motivate vehicles owners to park for a long time or for short time?
-Are there different rates for different types of vehicles?
-When vehicles should enter or exit the parking lot?

Developing the solution
After you make clarifications regarding your understandings of the problem, you are going about to create a solution to the problem. To solve the problem, there are three tools that you can use--Structure Chart, Pseudo-code, and Flowchart.
Structure Chart is a chart that show all parts and their hierarchical relationships of your program. Each part of the program is called module and in C programming language we call function.


Structure Chart

Pseudo-code
Pseudo-code is part of language. It is used to describe the detail of algorithms. This requires the steps to accomplish the program. Pseudo-code can be a road map for coding the program.

Algorithm Calculate Parking Fee
1. Set parking rates
  -For car and duration<=2,crate1=0$
  -For car and duration>2, crate2=1$ per hour
  -For truck and duration<=2, trate1=1$
  -For truck and duration>2, trate2=2$ per hour
  -For bus and duration<=2, brate1=2$
  -For bus and duration>2, brate2=3$ per hour
2.Read type of vehicle
  -c or C for car
  -b or B for bus
  -t or T for truck
3.Computer parking duration
  -Read time in and time out
  -If time out<time in, then prompt the user to enter again.
  -Computer duration=time out-time in
  -Return duration
4.Calculate parking fee
  -If v_type=c & duration<=1 then p_fee=crate1
  -If v_type=c & duration>1 then p_fee=0+(duration-1)*crate2
  -If v_type=t & duration<=2 then p_fee=trate1
  -If v_type=t & duration>2 then p_fee=1+(duration-2)*trate2
  -If v_type=b & duration<=2 then p_fee=brate1
  -If v_type=b & duration>2 then p_fee=2+(duration-2)*brate2
  -Return

5.Print report: type of vehicle, duration, and parking fee

Flowchart
Flowchart is another way to show the detail steps of the algorithm. In stead of showing the detail using logic language(pseudo-code) the flowchart uses graphical symbols.



Flowchart Symbols

  Flowchart Symbols
 

Coding the program
Now, it is the time to write code. To code your program, you can use one or the combination of of computer programming languages that you are familiar with. The purpose of this tutorial is to help you understand the software development process, so we don't write the code of this program.

Testing the program
After you complete writing code for your program, you need test it to see whether all parts of your program work well together.
There are two types of testing the program--Blackbox test and Writebox test.
The Blackbox test is conducted by people who do not know what really are in your program. The Blackbox test plan need to be prepared based on the requirements.
Another testing is Whitebox test that is conducted by people who know what really are in your system. If you are the programmer, one of your responsibilities is to conduct this test.



  • Why and How to learn
  • C programming language?
  • C++ programming language?
  • C# programming language?
  • Java programming language?
  • Python programming language?
  • VB programming language?
comment

Posted comments

Phan Neth, CICI, year 3:

Now it is ok teacher. I can connect to database and select data from it. Than you so much teacher !!!!!

04-30-2013

Dara:

Copy and paste the link below to the address box to learn how to connect C and Mysql server:
http://www.worldbestlearningcenter.com/index_files/cpp-tutorial-connect_mysql_database.htm

04-27-2013

Phan Neth, CICI, year 3:

Hello teacher i want to connect C programming language to MySql server but it have problem. When i compile it always error with library " my_global.h
and mysql.h", so how should i do?

04-27-2013

Phan Neth, Year 3 at CICI,:

I have some problem about connection to mysql server. So I hope teacher can help me. Thank !!!!

04-26-2013

Federico:

Output appears the same also this way:

static void Main(string[] args)
{
int[,] myArray = new int[5, 5];
int row, i;
int n = 1;

for (row = 0; row < 5; row++)
{
for (i = 0; i < 5; i++)
{
myArray[row, i] = n;
if (row == 1 && i == 2) Console.Write(" \t");
else Console.Write("{0} \t", n);

if (n!=26) n++;
if((i+1)%5==0) Console.WriteLine("\n");
}
}
Console.ReadLine();
}

04-13-2013

Dara:

Let pointer p point to the index 1 elem (value=2) of the array.
int *p= a+1;
Let pointer q point to the index 6 elem (value=5) of the array.
int *q= a+6;
-Expression q-p is the subtraction of address of the index 6 element and the address of index 1 elem of the array. So, the result is 5.
-Expression *p+*q is the sum of the value of index 1 elem (2) and the value of index 6 elem (5). So, the result is 7.
In conclusion, the output is 57.

03-28-2013

Anushka :

Find the output of following code
main()
{
int a[] = {1,2,9,8,6,3,5,7,8,9};
int *p= a+1; int *q= a+6;
cout<< q-p <<*p+*q; }

03-28-2013

Dara:

Option Explicit
Dim Cn as New ADODB.Connection
Private Sub_Form_Load()
Cn.Open "Provider=SQLOLEDB; Data Source=ServerName; Initial Catalog=DatabaseName;UserID=UserName; Password=Passw"
End Sub
You will need to replace ServerName with the name of your server (installed SQL Server), DatabaseName withe the name of your data file that you want to connect to, UserName with the name of the user to login to SQL Server, and Passw with the password used to login to SQL Server.

03-13-2013

More>>>

....................................................................................................................Home | Forum | About | Contact
This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.
Copyright @ 2011-2013 worldbestlearningcenter. All Rights Reserved.
Computer-Wbest
Programming Tips
Download
Related Posts