C

@cmalanda

Timeout Decorator

Python
1 week ago
# Timeout Decorator # Implement a timeout decorator that limits a function's execution time by interrupting it if it exceeds a specified time limit. # Requirements: # Implement a timeout decorator that accepts a single argument, seconds, which

Timeout Decorator

Python
1 week ago
# Timeout Decorator # Implement a timeout decorator that limits a function's execution time by interrupting it if it exceeds a specified time limit. # Requirements: # Implement a timeout decorator that accepts a single argument, seconds, which

VALENTINO 2

SQL
1 week ago
create table productos ( id_producto int primary key, nombre varchar(40) not null, categoria varchar(20) not null, precio decimal(10,2) not null, stock int not null, id_proveedor int, foreign key (id_proveedor) references proveedores(id_proveedor) )

database

SQL
1 week ago
/*Autore: Cognome Nome*/ .header on .mode column -- CREAZIONE TABELLE CREATE TABLE aziende ( cod_azienda INTEGER PRIMARY KEY, denominazione TEXT NOT NULL, -- max 20 indirizzo TEXT, -- max 30

facture

MySQL
1 week ago
CREATE TABLE CLIENT ( numCli int PRIMARY KEY, nomCli varchar(15), prenomCli varchar(15), adresseCli varchar(20) ); CREATE TABLE FACTURE ( numFac int PRIMARY KEY, dateFac date,

cslcolo fattoriale

C
1 week ago
//implementare la funzione ricorsiva fattoriale(n) e usare la libreria <stdlib.h> #include <stdio.h> #include<stdlib.h> //necessaria per exit e EXIT_FAILURE int fattoriale(int n){ //controllo errore di input if(n<0){ printf("errore

CosPro_3급_1회_9번

Python
1 week ago
str = input() for i in range(0, len(str)) : for j in range(i+1) : print("%s" % str[j], end="") print(end=" ")

znaki.py

Python
1 week ago
# Nagłówek tabeli print(f"{'Kod':<5} | {'Znak':<5}") print("-" * 15) # Wyświetlanie fragmentu tablicy Unicode (zakres 32 - 126) for kod in range(32, 127): znak = chr(kod) # Dla kodu 32 (spacja) wyświetlamy czytelny opis, aby tabela była czy

znaki.py

Python
1 week ago
# Nagłówek tabeli print(f"{'Kod':<5} | {'Znak':<5}") print("-" * 15) # Wyświetlanie fragmentu tablicy Unicode (zakres 32 - 126) for kod in range(32, 127): znak = chr(kod) # Dla kodu 32 (spacja) wyświetlamy czytelny opis, aby tabela była czy

swap i love you

C++
1 week ago
#include<iostream> #include<string> #include<cstdlib> using namespace std; int main() { int c=8; system("color 0c"); string str="I LOVE YOU!"; for(float i=2.5;i>-2.0;i-=0.12){

swap i love you

C++
1 week ago
#include<iostream> #include<string> #include<cstdlib> using namespace std; int main() { int c=8; system("color 0c"); string str="I LOVE YOU!"; for(float i=2.5;i>-2.0;i-=0.12){

tree

C++
1 week ago
#include <iostream> int main() { std::cout << "Hello world!" << std::endl; std::cout <<"hello"<< std::endl; std::cout << "bueno dias" << std::endl; std::cout << " astarmaniana" << std::endl; std:: cout << "bvovulcandes, se neces

tree

C++
1 week ago
#include <iostream> int main() { std::cout << "Hello world!" << std::endl; std::cout <<"hello"<< std::endl; std::cout << "bueno dias" << std::endl; std::cout << " astarmaniana" << std::endl; std:: cout << "bvovulcandes, se neces

1105 111쪽(급식계산) 21119이진

Python
1 week ago
print('21119 이진수') print('------[110쪽 활동지 1번]------') price=1200 amount=12 #dc_rate=20/100 total=price*amount print('전체 금액:',total,'할인 전 가격') dc=total*20//100 total=total-dc print('할인 금액:',dc,'30% 할인한 가격')

dml2

SQL
1 week ago
create table passenger2(passportid integer primary key,name varchar(20),age integer,sex char(1),address varchar(30)); create table passengerticket(passportid integer,ticketno integer primary key); create table reservation2(PNRN integer primary key,j

dtft

Python
1 week ago
import numpy as np import matplotlib.pyplot as plt # Define input signal n = np.array([0, 1, 2, 3, 4]) x = np.array([1, 2, 3, 2, 1]) # Frequency range from -pi to pi w = np.linspace(-np.pi, np.pi, 2000)

1105 111쪽 급식계산 20615 이수영

Python
1 week ago
print('20615 이수영') print('------------110쪽 활동지 1번------------') price=1200 amount=12 dc_rate=20/100 total=price*amount print('전체 금액:',total,'(할인전가격)') dc=int(total*dc_rate) total=total-dc print('할인 금액:',dc,'(20%할인한가격)')

queries using aggregate functuions

SQL
1 week ago
create table emp(eid number, ename varchar2(10),age number, salary number); SELECT*FROM emp; select count (ename) from emp; select max (age) from emp; select min(age) from emp; select sum(age) from emp; select avg(age) from emp; CREATE VIEW A AS SE

exam

SQL
1 week ago
-- PART B PRAGMA foreign_keys = ON; DROP TABLE IF EXISTS OrderItems; DROP TABLE IF EXISTS Orders; DROP TABLE IF EXISTS Products; DROP TABLE IF EXISTS Customers; CREATE TABLE Customers(

1105 111쪽(급식계산) 20719정진아

Python
1 week ago
print('20719정진아') print('-----[110쪽 활동지1번]-----') price=1200 #아이스크림 가격 amount=12 #아이스크림 수량 dc_rate=20/100 #할인률 total=price*amount #전체 금액 print('전체 금액',total,'(할인전가격)') dc=int(total*dc_rate) #할인 금액 total=total-dc #지불할 금액 print('할인 금액',dc,'(30%할인한가격)'