CS 101 Lab: Conversions and Temperature Algorithm, Exercises of Computer Science

A 3-hour lab exercise from the computer science and engineering faculty for cs 101 students. The lab includes two tasks. The first task involves converting decimal numbers to binary and octal formats. The second task requires writing an algorithm and drawing a flowchart to determine if a temperature is below or above the freezing point.

Typology: Exercises

2018/2019

Uploaded on 03/01/2022

muhammad-ahmad-46
muhammad-ahmad-46 🇵🇰

1 document

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
FACULTY OF COMPUTER SCIENCE
AND ENGINEERING
Time: 3 hrs. CS 101 Lab Marks: 10
Section: B Lab # 01 Dated: 06/09/2019
Task # 01 (5 points)
T1: Do the following conversions.
1. Convert (39472)10 to Binary
2. Convert equivalent octal form of (F13)16
3. Convert the binary number (010101010101111000)2 into its equivalent octal.
Task # 02 (5
points)
T2: Write an algorithm and draw a flowchart to determine whether a temperature is
below or above the freezing point.

Partial preview of the text

Download CS 101 Lab: Conversions and Temperature Algorithm and more Exercises Computer Science in PDF only on Docsity!

FACULTY OF COMPUTER SCIENCE

AND ENGINEERING

Time: 3 hrs. CS 101 Lab Marks: 10

Section: B Lab # 01 Dated: 06/09/

Task # 01 (5 points)

T1: Do the following conversions.

  1. Convert (39472) 10 to Binary
  2. Convert equivalent octal form of (F13) 16
  3. Convert the binary number ( 010101010101111000 ) 2 into its equivalent octal.

Task # 02 (

points)

T2: Write an algorithm and draw a flowchart to determine whether a temperature is below or above the freezing point.