Académique Documents
Professionnel Documents
Culture Documents
SOLUTION
Following steps are required:
We will ask the user to enter temperature in Farhenheit. User will provide one value in Farhenheit (which
may be a floating point value). To convert this temperature into Centigrade, first subtract 32 from it and
then divide it by 32. Once the conversion is done, display the temperature on the output screen
mentioning that this is the equivalent temperature in Centigrade.
No variables other than the input and output are required. Here are the variables:
Flowchart: I assume that drawing flowchart of the above solution is not a difficult task now.
PROBLEM 2 (Related to Selection)
Write down an algorithm that reads two integers and prints either “MULTIPLE” or “NOT MULTIPLE”
depending upon whether one of the integers is multiple of other or not.
SOLUTION
Following steps are required: