Recent projects

ITDSA Q2

MongoDB · michael_wants_money
6 hours ago
db.createCollection("Author") db.createCollection("BookAuthor") db.createCollection("Book") db.createCollection("BorrowedBooks") db.createCollection("Member") db.Author.insertMany ([ { authorId: 1,

enviar

PHP · an anonymous user
6 hours ago
<?php header('Content-Type: application/json; charset=utf-8'); if ($_SERVER['REQUEST_METHOD'] !== 'POST') { http_response_code(405); echo json_encode([ 'ok' => false, 'message' => 'Método no permitido' ]); exit;

calculadora

Python · an anonymous user
6 hours ago
num1 = float(input("Primer número: ")) operador = input("Operación (+, -, *, /): ") num2 = float(input("Segundo número: ")) if operador == "+": print(num1 + num2) elif operador == "-": print(num1 - num2) elif operador == "*": print(num1

primo

Python · Jaki
6 hours ago
n = int(input("Escribe un número: ")) if n < 0: print("No se permiten números negativos") else: c = 0 for x in range(1, n + 1): if n % x == 0: c += 1

calculadora

Python · josafatarriaga
6 hours ago
# Calculadora básica para MyCompiler print("=== CALCULADORA BÁSICA ===") while True: print("\nSeleccione una opción:") print("1. Sumar") print("2. Restar") print("3. Multiplicar") print("4. Dividir")

config

NodeJS · an anonymous user
6 hours ago
/* ============================================================ CONFIGURACION DE CONEXION ------------------------------------------------------------ Pega aqui los dos datos que te da Supabase. Los encuentras en: Supabase > Project Set

itdsa project 2. question 2.1

MongoDB · an anonymous user
6 hours ago
// Reset collections to ensure schema consistency db.book.drop(); db.member.drop(); db.borrowedbooks.drop(); // 1. Insert book data db.book.insertMany([ { "bookID": 101, "title": "Harry Potter and the Philosopher's Stone" }, { "bookID": 102, "t

ITDSA2-12 - EDUV8989682 - MONGO

MongoDB · an anonymous user
6 hours ago
db.createCollection("AUTHOR"); db.createCollection("BOOK"); db.createCollection("MEMBER"); db.createCollection("BOOKAUTHOR"); db.createCollection("BORROWEDBOOKS"); db.AUTHOR.insertMany([ { authorID: "A01", firstName: "Adewale", lastName: "Obaro"

cuadrante de un punto

Python · PEPELEPU
6 hours ago
x = float(input("")) y = float(input("")) if x > 0 and y > 0: print("El punto está en el cuadrante I") elif x < 0 and y > 0: print("El punto está en el cuadrante II") elif x < 0 and y < 0:

numero primo

Python · PEPELEPU
6 hours ago
numero = int(input("")) primo = True if numero <= 1: primo = False for i in range(2, numero): if numero % i == 0: primo = False

itdsa project 2. question 2.1

MongoDB · an anonymous user
6 hours ago
// Query to erase the record of the borrowed book where the fine was R50 db.borrowedbooks.deleteOne({ "fine": 50 }); // 1. Insert a test record that explicitly has a fine of 50 db.borrowedbooks.insertOne({ "borrowID": 903, "memberID": 503,

positivo o negativo

Python · PEPELEPU
6 hours ago
numero = float(input("Ingresa un número: ")) if numero > 0: print("El número es positivo") elif numero < 0: print("El número es negativo") else: print("El número es cero")

num primo

Python · CESARNAV
6 hours ago
num1 = int(input(" ")) if num1 < 0: print("Error: no se admiten números negativos.") elif num1 <= 1: print(num1, "no es primo") else: es_primo = True for i in range(2, num1):

EsGradi

C · Al3x23
6 hours ago
#include <stdio.h> int main() { double GradiK; double GradiC; double GradiF; GradiK = 290;

calculadora

Python · PEPELEPU
6 hours ago
num1 = float(input("")) num2 = float(input("")) print("") print("") print("") print("") opcion = input(" ")

itdsa project 2. question 2.1

MongoDB · an anonymous user
6 hours ago
// Query using the aggregation pipeline to calculate the total fine revenue db.borrowedbooks.aggregate([ { $group: { _id: null, "totalRevenue": { $sum: "$fine" } } } ]); // 1. Clear out old borrowed records to avoid duplicate

Quest2P2.c

C · an anonymous user
6 hours ago
#include <stdio.h> int main(){ int n; int a = 0, b = 1, c, i; printf("Digite a posição n: "); scanf("%d",&n); for (i = 0; i <= n; i++) { printf("%d ", a);

itdsa project 2. question 2.1

MongoDB · an anonymous user
6 hours ago
// Query using the aggregation pipeline to calculate the total fine revenue db.borrowedbooks.aggregate([ { $group: { _id: null, "totalRevenue": { $sum: "$fine" } } } ]);

actividad1

Python · josafatarriaga
6 hours ago
nombre= input ("ingresa tu nombre ") edad = input ("ingresa tu edad ") ciudad = input ("imgresa tu ciudad ") print("Buenas ", nombre, "tienes ", edad, "años y vives en ", ciudad)

PYTHON

Python · CUERVOX
6 hours ago
numero = float(input("Ingresa un número: ")) if numero > 0: print("El número es positivo.") elif numero < 0: print("El número es negativo.") else: print("El número es cero.")