Skip to content

Instantly share code, notes, and snippets.

View devqueue's full-sized avatar
:octocat:
coding from home

devqueue devqueue

:octocat:
coding from home
  • VS-code
View GitHub Profile

How to use it locally

$ # Get the code
$ git clone <repo>
$ cd genelookup
$
$ # activate an environment
$ conda activate genelookup
$ 

Analysis of Learning Performance

Five trainees at a tech company, Maryam, Khairul, Najla, Sofea, and Iskandar are preparing for the upcoming programming competition that is required in a training program. Four times a week, they practice coding a past competition question, and record their time spent to answer and the score that is auto-graded. You are asked to write a program that displays the following at the end of each week: how many minutes they spent each day and the scores, the average time, and the average score as well as the highest score achieved. Write a program that reads the data recorded by the five trainees using:

a. An array to store the names of the five trainees and a two-dimensional array of five rows and eight columns of type int to store the times and scores for each trainee.

b. A function to read data from the user and display the trainee’s names and the time (in minutes) spent and the scores achieved each working day. Trainee’s name should be stored in a one-dimensional arr

float temp;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
temp = analogRead(A0);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link href="/static/favicon.ico" rel="icon">
@devqueue
devqueue / recap.md
Last active December 11, 2021 10:02

Python Recap

Basics:

Input and Output:

  1. print("hello world")
  2. name = input("Type your name: ")

Data Types:-

  1. int
import cv2
import os
import string
import random
class Capture:
def __init__(self):
pass
def color():
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
// package assignment2;
import java.util.Scanner;
/**
*
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
/**
import java.util.*;
import java.io.*;
/**
*
* @author user
*/
public class Main {
/**
@devqueue
devqueue / calc.py
Created September 15, 2021 13:32
calculator
print('''What operation do you want?
1. addition
2. Subtraction
3. Multiplication
4. Division
''')
choice = int(input("Enter your choice: "))
number1 = int(input("Enter first number: "))