ce101-c

module
v0.0.0-...-4465049 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2022 License: GPL-2.0

README

C101

Introduction

Feel free to visit and use some sample codes and homeworks problem source codes in C and GoLang for the Introduction to Programming course at the Amirkabir University of Tech. under supervision of Prof. Bakhshi.

For homework problems and more materials about the course see here.

Thanks to Quera for supporting our course!

Trello boards

Requirements

Source codes of Homework are written in Go and C. Documentations are in Word and needs Sahel and Vazir fonts.

Problem Structure

Each problem have the following structure:

HW-1\
    |
    |- p1\
    |    |
    |    |- p1.md
    |    |- p1.go
    |    |- tc\
    |    |     |- in
    |    |     |- out
    |
    |- p2\

p.sh creates the zip file that can be uplaoded to Quera website based on the above structure. It feeds the inputs from in folder into p.go then puts the results into out folder.

If there is a file with generator.go name in tc folder the p.sh use it to generate the test cases into in folder.

package main

import (
	"fmt"
	"math/rand"
)

func main() {
	fmt.Printf("%d %d;", 1, 10)
	fmt.Printf("%d %d;", 5, 10)

	for i := 0; i < 20; i++ {
		m := rand.Intn(100)
		n := rand.Intn(m)

		fmt.Printf("%d %d;", n, m)
	}
}

Topics

  • Lecture 3: Basic C Programming
  • Lecture 4: Calculations
  • Lecture 5: Interaction
  • Lecture 6: Making Decisions
  • Lecture 7: Repeating Statements
  • Lecture 8: Functions
  • Lecture 9: Arrays
  • Lecture 10: Pointers & Dynamic Memory
  • Lecture 11: Structures
  • Lecture 12: Files
  • Lecture 13: Miscellaneous

Assignments

  • HW1: Algorithm Design

  • HW2: Caculation (with an introduction to math.h) and Interaction (scanf() and printf())

  • HW3: Decision Making

  • HW4: Loops

  • HW5: Functions

  • HW6: Mid-Term Project

  • HW7: Pointer, Structs and Files

Exercises are categorized by topic and semester order in this link

The difficulty of each question from 10 and terms that contain the question are included in the sheet along with their link.

Workshops

  • Introduction-1
  • Introduction-2
  • Algorithm
  • Algorithm
  • I/O, Calculation
  • Decision
  • Loop
  • Midterm Review
  • Git
  • Arrays & DP
  • Pointers
  • Pointers and Arguments
  • Linked Lists & Structs

Teaching Assistants over Semesters

Fall-2014
Fall-2015
Fall-2016
Fall-2017
Fall-2018
Spring-2019
Fall-2019
Spring-2020
Fall-2020

Directories

Path Synopsis
Fall-2015
HW-4/p3
* In The Name Of God * ======================================== * [] File Name : p3.go * * [] Creation Date : 16-11-2015 * * [] Created By : Elahe Jalalpour (el.jalalpour@gmail.com) * =======================================
* In The Name Of God * ======================================== * [] File Name : p3.go * * [] Creation Date : 16-11-2015 * * [] Created By : Elahe Jalalpour (el.jalalpour@gmail.com) * =======================================
HW-4/p5
* In The Name Of God * ======================================== * [] File Name : p5.go * * [] Creation Date : 16-11-2015 * * [] Created By : Elahe Jalalpour (el.jalalpour@gmail.com) * =======================================
* In The Name Of God * ======================================== * [] File Name : p5.go * * [] Creation Date : 16-11-2015 * * [] Created By : Elahe Jalalpour (el.jalalpour@gmail.com) * =======================================
HW-5/p1
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p1.go * +===============================================
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p1.go * +===============================================
HW-5/p2
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p2.go * +===============================================
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p2.go * +===============================================
HW-5/p3
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 04-12-2015 * | * | File Name: p3.go * +===============================================
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 04-12-2015 * | * | File Name: p3.go * +===============================================
HW-5/p4
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p4.go * +===============================================
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p4.go * +===============================================
HW-5/p5
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p5.go * +===============================================
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p5.go * +===============================================
Fall-2016
HW-4/p2
* In The Name Of God * ======================================== * [] File Name : p3.go * * [] Creation Date : 16-11-2015 * * [] Created By : Elahe Jalalpour (el.jalalpour@gmail.com) * =======================================
* In The Name Of God * ======================================== * [] File Name : p3.go * * [] Creation Date : 16-11-2015 * * [] Created By : Elahe Jalalpour (el.jalalpour@gmail.com) * =======================================
HW-4/p4
* In The Name Of God * ======================================== * [] File Name : p5.go * * [] Creation Date : 16-11-2015 * * [] Created By : Elahe Jalalpour (el.jalalpour@gmail.com) * =======================================
* In The Name Of God * ======================================== * [] File Name : p5.go * * [] Creation Date : 16-11-2015 * * [] Created By : Elahe Jalalpour (el.jalalpour@gmail.com) * =======================================
HW-5/p1
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p1.go * +===============================================
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p1.go * +===============================================
HW-5/p2-a
* +=============================================== * | Author: Parham Alvani (parham.alvani@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p2-a.go * +===============================================
* +=============================================== * | Author: Parham Alvani (parham.alvani@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p2-a.go * +===============================================
HW-5/p2-b
* +=============================================== * | Author: Parham Alvani (parham.alvani@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p2-b.go * +===============================================
* +=============================================== * | Author: Parham Alvani (parham.alvani@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p2-b.go * +===============================================
HW-5/p3
* +=============================================== * | Author: Parham Alvani (parham.alvani@gmail.com) * | * | Creation Date: 09-01-2017 * | * | File Name: p3.go * +===============================================
* +=============================================== * | Author: Parham Alvani (parham.alvani@gmail.com) * | * | Creation Date: 09-01-2017 * | * | File Name: p3.go * +===============================================
HW-5/p4
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p4.go * +===============================================
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p4.go * +===============================================
HW-5/p5
* +=============================================== * | Author: Parham Alvani (parham.alvani@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p5.go * +===============================================
* +=============================================== * | Author: Parham Alvani (parham.alvani@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: p5.go * +===============================================
Fall-2017
Fall-2018
Fall-2019
Fall-2020
Spring-2019
HW-5/p3
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 04-12-2015 * | * | File Name: p3.go * +===============================================
* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 04-12-2015 * | * | File Name: p3.go * +===============================================
Spring-2020
HW-3/p1
*In The Name of God * * +=============================================== * | Author: Mohammad Fatemi <mr.smf8@gmail.com> * | * | Creation Date: 21-03-2020 * | * | File Name: p2.go * +===============================================
*In The Name of God * * +=============================================== * | Author: Mohammad Fatemi <mr.smf8@gmail.com> * | * | Creation Date: 21-03-2020 * | * | File Name: p2.go * +===============================================
HW-3/p2
*In The Name of God * * +=============================================== * | Author: Mohammad Fatemi <mr.smf8@gmail.com> * | * | Creation Date: 21-03-2020 * | * | File Name: p2.go * +===============================================
*In The Name of God * * +=============================================== * | Author: Mohammad Fatemi <mr.smf8@gmail.com> * | * | Creation Date: 21-03-2020 * | * | File Name: p2.go * +===============================================
HW-3/p4
*In The Name of God * * +=============================================== * | Author: Mohammad Fatemi <mr.smf8@gmail.com> * | * | Creation Date: 22-03-2020 * | * | File Name: p4.go * +===============================================
*In The Name of God * * +=============================================== * | Author: Mohammad Fatemi <mr.smf8@gmail.com> * | * | Creation Date: 22-03-2020 * | * | File Name: p4.go * +===============================================
HW-3/p6
*In The Name of God * * +=============================================== * | Author: Mohammad Fatemi <mr.smf8@gmail.com> * | * | Creation Date: 22-03-2020 * | * | File Name: p6.go * +===============================================
*In The Name of God * * +=============================================== * | Author: Mohammad Fatemi <mr.smf8@gmail.com> * | * | Creation Date: 22-03-2020 * | * | File Name: p6.go * +===============================================
HW-3/p7
*In The Name of God * * +=============================================== * | Author: Mohammad Fatemi <mr.smf8@gmail.com> * | * | Creation Date: 22-03-2020 * | * | File Name: p7.go * +===============================================
*In The Name of God * * +=============================================== * | Author: Mohammad Fatemi <mr.smf8@gmail.com> * | * | Creation Date: 22-03-2020 * | * | File Name: p7.go * +===============================================

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL