0% found this document useful (0 votes)
22 views7 pages

Lab 1

Lab1

Uploaded by

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

Lab 1

Lab1

Uploaded by

yaracih699
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

CS101 Spring 2023 (9 Jan and 10 Jan 2024)

Lab - 01

Welcome all to the first lab of CS101. Today, let’s look at the various tools and software that we will be
using throughout the course. However, before going into the details first, let’s get started with introducing
yourselves to your group members.

1. Introduction
All of you have been divided into groups, where each group has roughly 10 to 13 students and a
group ID is assigned for that group. If all of you are seated according to the seating plan, then

get to know each other. Do not talk for a long time 😀


your group members should be very close to the row that you are seated at. Give hi-fi to them and
. Each group has been assigned a TA.
He/She will guide and help you throughout this course. Treat them like your friends but with
respect. Feel free to ask them anything related to the technical doubts that you have. Again, if you
are seated according to the seating plan, your TA will be somewhere around you (non-seated).
Say hello to him/her.

You are seated in a lab having computers/laptops, hence, please do not unplug any existing
equipment i.e. power cables, LAN cable, keyboard, mouse, etc. Also, handle/use the lab
equipment and furniture with care.

If you do not have a laptop and are using the desktop/laptop of the lab and you are facing some
issues with the machine, please contact your TA first. If you are not able to locate your TA, just
raise your hand; a nearest TA will help you.

2. IITB SSO
Open a browser and browse https://sso.iitb.ac.in/ and enter your LDAP id, password, and OTP.
Click Login. For more information, please visit: https://www.cc.iitb.ac.in/page/services-sso

3. Survey Form
If you have not filled up the google form shown by Prof Shivaram (CS101 Course Instructor) in
the class then, please fill it up: https://forms.gle/XcEBhC9RWvZWowHR7
4. Installation of Ubuntu App and s++ (Windows users)
a. Skip this part if you are using the machine provided by IIT, as simplecpp is already
installed.
b. https://docs.google.com/document/d/1-ENpW6KO5R2ulTqVlsImsSCav-6aqV8XmP24zd
Ww9zA/edit?usp=sharing

5. Installation of s++ (Linux/Ubuntu/Mac Users)


a. Skip the installation point if you are using the machine provided by IIT, as simplecpp is
already installed.
i. Mac or Linux: Click on the link given below.
https://drive.google.com/drive/folders/1oSJ1nW2tNlxi18ecq0gqTNwC87xmHw
KM?usp=sharing
ii. Based on the operating system that you use, view the video and follow the
instructions to install simplecpp.

6. Writing and Executing a Simple Program (Windows/Linux/Ubuntu/Mac Users)


a. Refer to the link given below on how to write and compile programs using simplecpp:
https://docs.google.com/document/d/1mS5ImqAsKyFoAmFWyBNeWSoX-98GxyMDlC
t3aGsiCr0/edit?usp=sharing

7. Basic Linux Commands for practice


a. Note:
i. These are to be executed on the command line. Open the terminal as usual.
b. Commands
i. pwd
Print working directory. This command prints the path of your current directory.
Type pwd and press enter and observe what it prints.
ii. ls
List files. Type ls and press enter. This command will display all the files and
folders present in your directory
iii. mkdir
Make/Create directory. Type mkdir <yourname> and press enter.
E.g. mkdir amita This will create a directory with the name ‘amita’ that you
gave. Type ls and press enter. Check if you see the directory that you just
created
iv. cd
This refers to changing the directory. This command allows us to navigate into a
certain directory. Type cd <DirectoryName>. E.g. cd amita and press
enter. To confirm the path type pwd.
v. cd ..
This command takes us one level up in the directory. Type cd .. and press
enter. Check the path by typing pwd

8. Moodle: https://moodle.iitb.ac.in/course/view.php?id=3477
a. All lecture slides, important links, communication, and marks, will be done using
moodle.
9. Bodhitree https://cs101.bodhi.cse.iitb.ac.in/
It is a platform where all the weekly labs and lab exams will need to be submitted. Note that the
marks for all weekly labs, theory quizzes, midsem, endsem, and lab exams will be uploaded on
moodle.
a. Signup
i. An account has been created for all of you and you must have received mail in
your webmail with the Subject ‘'[Bodhitree] ' Welcome to Bodhitree.’ A
sample email is shown below for your reference.
(If you were already enrolled in Bodhitree for some previous course, you will not
receive any email because an account has already been created for you. In such
case, go to https://cs101.bodhi.cse.iitb.ac.in/accounts/login/ and select the forgot
password option to change your password. Then use that password for further
login. You can skip to step (iv) if this is the case.)

ii. In this course, we won't be using SSO based login. Here you have to manually
change the password. To change the password, click on the 1st option which says
‘Please click on the link below to set/update your password for BodhiTree.’ A
sample email link is shown below.
iii. Once you click on the link, you will be redirected to a page where you can set
your password. Type a password that you would like to use twice.

iv. After completing the above steps, go to link below, type your LDAP email
address and your newly created password and Click Sign in.
https://cs101.bodhi.cse.iitb.ac.in/accounts/login/

b. Navigate to the course


i. Assuming that you are logged in, click ‘My Dashboard’. You will see a list of
courses that you are a part of.
ii. Click on S23 : CS101-Computer Programming and Utilization
c. Programming labs
i. In the left pane, there is a link to programming labs. All weekly labs and lab
exams will be displayed and should be submitted on this link.

10. Submit programs


a. Selecting lab
i. Click on the lab assignment that you want to attempt. Read the problem
statement given.
b. Solution Program (Given for this lab only )
i. // Filename: helloworld.cpp
🙂
#include<simplecpp>
main_program {
cout << “hello world”;
}
ii. // Filename sum.cpp
#include<simplecpp>
main_program {
int a, b, sum;
cin >> a >> b;
sum = a + b;
cout << sum;
}
c. Viewing Test Cases
i. There are two types of test cases : practice and evaluate
ii. Practice test cases will not be used for grading. You can view the practice test
cases before the deadline.
iii. Evaluate test cases will be used for the final evaluation of your submission. They
can only be viewed after the deadline.

d. Uploading submission
i. Use an IDE in your system to write your solution.
ii. Verify that the filename is the same as mentioned in the question.
iii. Select choose file, and click on upload

e. Running Submission
i. Click on Run practice test to check your submission with practice test cases.

ii. The next screen shows if your submission passed the practice test cases.
😀
~~~ That’s it for today’s lab. See you all next week ~~~

~~~ Happy coding and All the best ~~~

You might also like