Friday, March 18, 2016

Project Documentation - Advantages of New Computerized System - "MATERNITY CENTRE"

ADVANTAGES OF SYSTEM

BACK

1. It is fully user friendly

     The system is fully user friendly since it is developed in menu based category which being an interactive environment is having very easy understandable facilities.

2. It doesn't require expert hand 

    The data entry in the software can be done by any body, since it handles any error occurred with a readable manage which guides even a raw hand to sort out the error.

3. Paper work is reduce

    Since there is no unnecessary printing copying of the document for the various patient and staff, the cost can be reduced.

 4. Faster access of information

     As the system will use file as its database, the information can be accessed fast and since the system will run on stand alone machine the retrieval can be done round the clock with greater security.

Thursday, March 17, 2016

Interview Questions - 3 - PHP - Answers

Back - Interview Questions - 3

1. Ans - Crypto usage in PHP is simple, but that doesn’t mean it’s free. First off, depending on the data that you’re encrypting, you might have reasons to store a 32-bit value in the database instead of the 160-bit value to save on space. Second, the more secure the crypto is, the longer is the computation time to deliver the hash value. A high volume site might be significantly slowed down, if frequent md5() generation is required.

2. Ans - htmlspecialchars only takes care of <, >, single quote ‘, double quote " and ampersand. htmlentities translates all occurrences of character sequences that have different meaning in HTML.

3. Ans - The major difference is the length of the hash generated. CRC32 is, evidently, 32 bits, while sha1() returns a 128 bit value, and md5() returns a 160 bit value. This is important when avoiding collisions.

4. Ans - ASSIGNMENTSSTORE IS COLLECTION OF INTERVIEW QUESTIONS. ucwords() makes every first letter of every word capital, but it does not lower-case anything else. To avoid this, and get a properly formatted string, it’s worth using strtolower() first

5. Ans - On large strings that need to be formatted according to some length specifications, use wordwrap() or chunk_split() 

6. Ans - Both examples would provide the same result - $var3 equal to "Welcome to Assignmentsstore.com". However, Code Sample 1 will work significantly faster. Try it out with large sets of data (or via concatenating small sets a million times or so), and you will see that concatenation works significantly faster than variable substitution. 

7. Ans - echo is the most primitive of them, and just outputs the contents following the construct to the screen. print is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string. However, you can pass multiple parameters to echo, like: 
 <?php echo 'Welcome ', 'to', ' ', 'Assignmentsstore!'; ?> 
and it will output the string "Welcome to Assignmentsstore!" print does not take multiple parameters. It is also generally argued that echo is faster, but usually the speed advantage is negligible, and might not be there for future versions of PHP. printf  is a function, not a construct, and allows such advantages as formatted output, but it’s the slowest way to print out data out of echo, print and printf.


8. Ans - A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests. There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved by the same script or another script when requested from the same visitor. Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor.

9. Ans
$date1 = date('Y-m-d');
$date2 = '2015-07-01'; 
$days = (strtotime() - strtotime()) / (60 * 60 * 24); 
echo "Number of days since '2015-07-01': $days";


10. Ans. A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer. By default, cookies are created as temporary cookies which stored only in the browser's memory. When the browser is closed, temporary cookies will be erased. You should decide when to use temporary cookies and when to use persistent cookies based on their differences:
*Temporary cookies can not be used for tracking long-term information.
*Persistent cookies can be used for tracking long-term information.
*Temporary cookies are safer because no programs other than the browser can access them.
*Persistent cookies are less secure because users can open cookie files see the cookie values.

Thursday, March 10, 2016

Project Documentation - Objective -"Maternity Centre"

OBJECTIVE


Back

According to Louis Allen "Objectives are goals established to guide the affairs of the company and each of its components". The key to effective planning lies in objectives.

Only a well-defined objective or goal highlights the need for planning. Apart from planning, objectives are also useful in managerial function like organizing, directing and controlling. Being an important aid in decision making in any area of business, clear-cut objectives also encourage consistency in decision making in the long run. Objectives are key to effective planning. In, fact, planning has no meaning unless it is related to certain well defined objectives or goals. Objectives are not only useful in planning but also in other managerial function like organizing, directing and controlling. They are an important aid in decision - making in any area of business. Clear-cut objectives encourage Consistency in decision making in the long run.

Significance of Objectives

The important of clearly defined objectives is generally recognized as contributing to management function in a variety of ways.

  • Objectives serve as reference points for keeping the reports of the organization 
             On Proper lines.
  • The are helpful in coordinating the activities undertaken by the organization
  • Continuous reviewing of objectives helps the organization to complete 
            Effectively with the rival firms.
  • Objectives serves prerequisites to determine effective policies, procedures
             Methods, strategies and rules.
  • Objectives provide the basis of control by clarifying the contribution of each 
            Position as well as each unit

Objectives of My Project

My project is about "Maternity management system", in which there are two works. When any pregnant woman enters for the delivery according to EDD(expected date of delivery). We maintain all the reports and conditions of delivery and after that computer generate the report that child issue either normal  or by operation.

For that my project maintain some case like-
  • Transverse lie
  • Breach presentation 
  • Chord around the neck 
  • Child kicking
  • Foetal heart sound
  • Twins condition etc.
After that, my project also maintains all the charges and generates the reports about billing. Such as
  • Consultation charge
  • Nursing charge
  • Delivery Charge
  • Room rent Oxygen Charge
  • Operation Charge
  • Extra Charges
  • Total
Nature of Objectives

  1. Objectives are realistic and operational 
  2. Objectives are multiple in nature
  3. Objectives may be long-range or short range
  4. Objectives follow a hierarchy
Overall, I can say, my project is about "MATERNITY CENTRE". It also maintains patient ledger, which keeps the records about the patients who has discharged from Nursing Home.

Planning

For any project work planning is necessary. I had also planned something before starting my project. So, I would like to define the "PLAN" word.

P = Pre
L = Learning
A = According
N = Need


It means Plan is "pre learning according to need". It is clear to say that planning is basically an exercise in determining the ends (i.e objectives) and means to achieve them. Thus, Planning process involves basically two phases.
  1.  Determination of objectives
  2. Setting of goal and objectives
Determination of Objectives

Planning is an ongoing organizational function that provides the road map for operational activities and decision making. The organizational mission is translated into operational objectives through an organizational hierarchy of planning activities. In my project I did that what would be output and to achieve that output i did work according to determine plan.


Settings of Goals and Objectives

The is general agreement on the meaning of terms used in planning, but the tend to be imprecisely and interchangeably.

The main objectives comes after the computerization of "MATERNITY CENTRE".

  • Improve processing speed in Nursing home
  • Enhance capacity to process a greater amount of activity
  • Providing ability in conducting complex search 
  • Faster retrieval of information Greater accuracy and consistency
  • Reducing paper work
  • Reducing cost, using computing capability to process data at a lower cost than possible with other methods, while maintaining accuracy and performance levels
  • Improved arrangements for patients
  • Reduces involvement of manpower
Actually my project is about to "MANAGEMENT". So, I also would like to define "MANAGEMENT" word.

There are many definitions of management, which emphasize one or the other important aspect of many management activities. Some people define management as "an art of getting things done through others".

This definition is incomplete because it considers only one aspect of managing, i.e. getting work from others. Managing is certainly much more than that. It includes decision - making, planning organizing, staffing, directing and controlling for the achievement of organizational objectives.

The above definition has been criticized on two more grounds. Firstly, this definition smacks of a manipulative character about the practices of management. Secondly, the conception of employees as mere means to certain ends, seems to be embodied in this definition. It is true that and enterprise employs people for the efficient and effective utilization of material resources to achieve its purpose. But the people so employed have their needs which they seek to fulfill through their work-place.

Function of Management 

Heneri Fayol the father of principle of management, said, "To manage is to forecast and plan, to organize, to command, to coordinate and to control". Thus, FAYOL classified management function into five categories.

Luther Gullick gave a classification of seven function of management. He coined the word "PODSCORB" to describe the funcition of management. This word is made up of the initials of the following function namely.
  1. Planning 
  2. Organizing
  3. Directing
  4. Staffing
  5. Coordinating
  6. Reporting
  7. Budgeting

Management Function

INPUT-------------->FUNCTION--------------->OUTPUT

Men                           Planning
Material                     Organizing                        Desirable
Machines                   Staffing                             Goals
Methods                    Directing                           And
Money                       Controlling                        Services


           THE PROCESS OF MANAGEMENT


Wednesday, March 9, 2016

Interview Questions - 3 - PHP

Interview Questions for PHP


Q1. So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

Q2. What’s the difference between htmlentities() and htmlspecialchars()?

Q3. What’s the difference between md5(), crc32() and sha1() crypto on PHP?

Q4. What’s the output of the ucwords function in this example?

$formatted = ucwords("ASSIGNGMENTSSTORE IS COLLECTION OF INTERVIEW QUESTIONS");

print $formatted;

Q5. I am writing an application in PHP that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with PHP?

Q6. I want to combine two variables together:

$var1 = 'Welcome to ';
$var2 = 'assignmentsstore.com';

What will work faster? Code sample 1:

$var 3 = $var1.$var2;

Or code sample 2:

$var3 = "$var1$var2";

Q7. For printing out strings, there are echo, print and printf. Explain the differences.

Q8. what is a session?

Q9. How can we know the number of days between two given dates using PHP?

Q10. What is a Persistent Cookie?

Wait for Answers .......Till Next Post.....Interview questions' answers. 

  .Interview Questions - 3 - Answers

Free Download PHP Interview Questions and Answers

Monday, March 7, 2016

Interview - 2 - PHP - Answers



Back - Interview Questions - 2

Q1.  What’s the special meaning of __sleep and __wakeup?

Ans. __sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them.

Q2. How do you call a constructor for a parent class?
Ans. parent::constructor($value)

Q3. Are objects passed by value or by reference?
 Ans. Everything is passed by value

Q4. What’s the difference between accessing a class method via -> and via ::?
 Ans. :: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.

Q5. If the variable $a is equal to 5 and variable $b is equal to character a, what’s the value of $$b?
Ans. 100, it’s a reference to existing variable.

Wednesday, March 2, 2016

Project Documentation - Acknowledgment - "Maternity Centre"

ACKNOWLEDGEMENT 


I would like to say that "NO DEFEAT IS DEFEAT UNTILL YOU STOP, SO KEEP TRYING......". Really, I, myself feel at the time of developing my project.

We express our deep sense of gratitude to "XYZ Name" for their endless guidance and support for the preparation of this project. He is my guide who helped me lots and always asssist me to go head.

we are also grateful to the ABC nursing home's stuff and the Manager for their good management, guidance and for giving me valuable time for the preparation of this project. 

I also express my heartfelt thanks to my friends subodh, vijay and my senior Mr. Arjun and Dr. M Mishra for their endless help. They proved, there is no greater relationship than the humanity.