0% found this document useful (0 votes)
3 views4 pages

Ayesha Hussain 23-SE-103: Activity 1

The document outlines various programming activities, including incrementing values, correcting syntax errors, and printing data types. It describes operations such as division, merging variable outputs, and user input handling. Additionally, it covers calculations like gross pay and temperature conversion, along with conditional statements and modulus operations.

Uploaded by

ulfat0372
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)
3 views4 pages

Ayesha Hussain 23-SE-103: Activity 1

The document outlines various programming activities, including incrementing values, correcting syntax errors, and printing data types. It describes operations such as division, merging variable outputs, and user input handling. Additionally, it covers calculations like gross pay and temperature conversion, along with conditional statements and modulus operations.

Uploaded by

ulfat0372
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
You are on page 1/ 4

AYESHA HUSSAIN

23-SE-103

Activity 1

In this simply we increment 1 to the value of x and print it.

In this there was a syntax error PRIMT and there wasn’t quotes. String value required
quotation.

In this we printed data types of different outputs.


Same here as well we printed different data types.

In this we first put values in there variables an print them through variable

In this we perform division operation

Activity 2

In this we printed different outputs of different operations. First we solve parenthesis


then power then division then multiplication after that addition and at last subtraction.

This is also similar


In this we merge different variables output in one line and print it at once

In this when we multiply string with integer. The output of that string would be integer
time.

In this we input different type of data from users.

Activity 3

Same here take input from the user.

In this we calculate gross pay from hours and rate.


In this temperature was given in Celsius and I calculated it in Fahrenheit.

In this we perform different conditions on the statement. Here we perform only less
than operation with if statement.

Here we use modulus with if statement

In this we check 3 conditions

You might also like