Words of Wisdom:

"if a parrot can really speak then what will be the right word,,good morning?" - Ictus5

The Maintenace Wizard

  • Date Submitted: 04/21/2014 06:07 PM
  • Flesch-Kincaid Score: 58.8 
  • Words: 1544
  • Essay Grade: no grades
  • Report this Essay
1(a).An algorithm is a step-by-step method of solving a problem.
    Properties:
    1.Finiteness- an algorithm should have finite number of steps.
    2.Definiteness-any step of an algorithm should be definite and unambiguous.
    3.Effectiveness-an algorithm should be effective in solving the problem that it's meant for.
    4.Input-it should have zero or more inputs.
    5.Output-it should have 1 or more outputs.
(b).Conditional Operator
Conditional operator takes three operands and consists of two symbols and : . Conditional operators are used for decision making in C. For example:
c=(c>0)?10:-10;
If c is greater than 0, value of c will be 10 but, if c is less than 0, value of c will be -10.
Bitwise Operators
A bitwise operator works on each bit of data. Bitwise operators are used in bit level programming.
Operators Meaning of operators
& Bitwise AND
| Bitwise OR
^ Bitwise exclusive OR
~ Bitwise complement
<< Shift left
>> Shift right

2.Pseudocode is an artificial and informal language that helps programmers develop algorithms. Pseudocode is a "text-based" detail (algorithmic) design tool.
The rules of Pseudocode are reasonably straightforward. All statements showing "dependency" are to be indented. These include while, do, for, if, switch. Examples below will illustrate this notion.
1.. If student's grade is greater than or equal to 60
Print "passed"
else
Print "failed"
OR
RULES FOR PSEUDOCODE
1. Write only one stmt per line
Each stmt in your pseudocode should express just one action for the computer.
2. Capitalize initial keyword
In the example above, READ and WRITE are in caps. There are just a few
keywords we will use:
READ, WRITE, IF, ELSE, ENDIF, WHILE, ENDWHILE, REPEAT, UNTIL
LOOPING: indent the statements that fall inside the loop, but not the keywords
that form the loop
PSEUDOCODE:
READ name, hourlyRate, hoursWorked
grossPay = hourlyRate * hoursWorked
IF grossPay >= 100
deduction = grossPay * deductionRate
ELSE...

Comments

Express your owns thoughts and ideas on this essay by writing a grade and/or critique.

  1. No comments