0% found this document useful (0 votes)
8 views1 page

Algorithms for Basic Math Problems

The document outlines a homework assignment consisting of seven problems related to algorithm writing. The tasks include finding the factorial of a number, checking for prime numbers, converting temperatures, generating a Fibonacci series, swapping numbers, determining freezing point temperatures, and assessing student pass criteria based on course marks. Each problem requires the creation of a specific algorithm based on user input or predefined conditions.

Uploaded by

shna jabar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Algorithms for Basic Math Problems

The document outlines a homework assignment consisting of seven problems related to algorithm writing. The tasks include finding the factorial of a number, checking for prime numbers, converting temperatures, generating a Fibonacci series, swapping numbers, determining freezing point temperatures, and assessing student pass criteria based on course marks. Each problem requires the creation of a specific algorithm based on user input or predefined conditions.

Uploaded by

shna jabar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Homework: 1 (10-09-2019)

Solve the following problems:

1. Write an algorithm to find the factorial of a number entered by user

2. Write an algorithm to check whether a number entered by user is prime or not.

3. Write an algorithm to convert temperature Fahrenheit to Celsius

4. Write an algorithm to find the Fibonacci series till term ≤ n

5. Write an algorithm to swap two numbers

6. Determine whether a temperature is below or above the freezing point

7. Assume that students have 5 courses in the first semester and students will be pass if mark of all
courses are greater than 50, write an algorithm to determine whether a student passed or not.

You might also like