0% found this document useful (0 votes)
89 views

Object Oriented Programming Expriment - 1 AIM Objective::: Experiment No:01 Algorithm and Flowchart

The document describes 4 algorithms to solve common problems using flowcharts and pseudocode. The problems include: 1) calculating the circumference and area of a circle given the radius, 2) determining a student's letter grade based on their marks, 3) calculating an employee's net pay given their hourly rate and hours worked, and 4) converting a temperature from Fahrenheit to Celsius. For each problem, the document provides a flowchart and pseudocode to illustrate the step-by-step process to solve the problem using basic programming concepts like inputs, calculations, and outputs.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views

Object Oriented Programming Expriment - 1 AIM Objective::: Experiment No:01 Algorithm and Flowchart

The document describes 4 algorithms to solve common problems using flowcharts and pseudocode. The problems include: 1) calculating the circumference and area of a circle given the radius, 2) determining a student's letter grade based on their marks, 3) calculating an employee's net pay given their hourly rate and hours worked, and 4) converting a temperature from Fahrenheit to Celsius. For each problem, the document provides a flowchart and pseudocode to illustrate the step-by-step process to solve the problem using basic programming concepts like inputs, calculations, and outputs.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Object oriented programming

EXPRIMENT -1

AIM: EXPERIMENT NO:01 ALGORITHM AND FLOWCHART

OBJECTIVE: TO DESIGN THE VARIOUS PROBLEMS USING THE


VARIOUS PROBLEM-SOLVING TECHNIQUES ALGORITHM AND FLOWCHART.

1. CALCULATE THE CIRCUMFERENCE AND AREA OF A CRICLE



Main()
Int radius,area,circumference;
Input radius;
Circumference=3.14*2*r;
Area= 3.14*r*r;
Output area;circumference;

START

READS RADIUS

CALCULATE AREA, PRINT AREA,


CIRCUMFERENCE CIRCUMFERENCE STOP
2. COMPUTE AND DISPLAY THE LETTER GRADE OF A STUDENT’S
MARKS IN CERTAIN COURSE
 Main()
Int marks,grade;
Input marks;
If mark>= 90;
Output grade=a;
If mark>= 80;
Output grade=b;
If mark>= 70;
Output grade=c;
If mark>= 60;
Output grade=d;

START

READS MARKS

CLACULATE GRADE

PRINT GRADE

STOP
3. COMPUTE AND PRINT THE NET PAY OF AN EMPLOYEE GIVEN THE
NUMBER OF HOURS WORKED AND THE HOURLY RATE OF PAY
 main()
int rate,hours worked, net pay;
input >>hourly rate of pay;
input >>hours worked by the employee;
net pay= rate*hours worked;
output<< net pay:

START

READS RATE ,
HOURS WORKED

CLACULATE NET PAY

PRINT NET PAY

STOP
4. CONVERT THE TEMPERATURE GIVEN IN DEGREES FARENHEIT
TO DEGREES CElCIUS
 Main()
Int c,f,temp;
Input>>f;
c=(5( F- 32) ) /9;
output<< temp in Celsius<<c;

START

READS temp in
FARENHEIT

CLACULATE TEMPERATURE
IN CELCIUS

PRINT TEMPRATURE IN
CELCIUS

STOP

You might also like