www.programming-helper.com
Open in
urlscan Pro
76.76.21.98
Public Scan
Submitted URL: http://www.programming-helper.com/
Effective URL: https://www.programming-helper.com/
Submission: On April 06 via api from US — Scanned from DE
Effective URL: https://www.programming-helper.com/
Submission: On April 06 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
Custom ChatGPT Plugin development Leverage the power of OpenAI's ChatGPT for seamless and human-like conversational interactions ConversAI Solutions → Dismiss Workflow Open main menu FeaturesAI ChatOpenEditCommunity DiscordOur API CODE FASTER WITH THE HELP OF AI Generate code just by typing a text description. AI will create the code for you. Test it now Get started Try it FEATURE PREVIEW Generate SQ| More than just a code generator. A tool that helps you with a wide range of tasks. All in one place. Function from Description Generate a function just by describing what is needs to do. Choose of many programming languages. Text Description to SQL Command Create a SQL command from a description. Translate Languages Translate code to any programming language. Generate HTML from Description Generate small HTML from Description. Code to Explanation Any code explained in plain english. Fix invalid Code To spot a missing character somewhere can be frustrating. This feature will help you to fix it. Get Test for Code This feature will help you to create tests for your code. Class from Description Generate a class just by describing what is needs to do. Choose of many programming languages. Regex from Description Create a regex from a description like "check for email". Regex to Explanation Create a plain english explanation from a regex. Git Command from Description Find the Git Command you are looking for from a description. Linux Command Get the linux command from a description. Function from Docstring Provide a docstring to generate the actual function. Add typing to code This feature will help you to add typing to your code. Get Language from Code Get the programming language from a code. Time complexity Get time complexity. CSS from Description Generate CSS from Description. Meta Tags from Description Generate Meta Tags from a Description. − sponsored − QUESTIONS ABOUT PROGRAMMING?CHAT WITH YOUR PERSONAL AI ASSISTANT Get chatting now HOW OTHERS USED IT RECENTLY Generated by the communtiy generate functionSun, 30 Jul 2023 EXTRACTS WORK EXPERIENCE FROM UNSTRUCTURED RESUME TEXT USING A TRAINED MLP MODEL LOADED WITH SPACY import spacy import sys import pickle nlp = spacy.load('en_core_web_sm', disable=['parser', 'tagger']) def extract_experience(text): doc = nlp(text) X = pd.DataFrame([[ent.text, ent.start_char, ent.end_char, ent.label_] for ent in doc.ents], columns = ["text", "start", "end", "label"]) X_test = X[X["label"] == "ORG"].copy() X_test["tokens"] = X_test["text"].apply(lambda x: [token.text for token in x.split()]) with open(f"model.pkl", 'rb') as f: model = pickle.load(f) y_pred = model.predict(X_test["tokens"]) return list(zip(X_test["text"], y_pred)) Python Guest generate functionSun, 05 Feb 2023 9. РАЗРАБОТАЙТЕ ПРИЛОЖЕНИЕ «7 ЧУДЕС СВЕТА», ГДЕ КАЖДОЕ ЧУДО БУДЕТ ПРЕДСТАВЛЕНО ОТДЕЛЬНЫМ КЛАССОМ. СОЗДАЙТЕ ДОПОЛНИТЕЛЬНЫЙ КЛАСС, СОДЕРЖАЩИЙ ТОЧКУ ВХОДА. РАСПРЕДЕЛИТЕ ПРИЛОЖЕНИЕ ПО ФАЙЛАМ ПРОЕКТА И С ПОМОЩЬЮ ПРОСТРАНСТВА ИМЁН ОБЕСПЕЧЬТЕ ВОЗМОЖНОСТЬ ВЗАИМОДЕЙСТВИЯ КЛАССОВ. using System; using Classes; namespace SevenWonders { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); } } } C# Guest generate functionTue, 23 May 2023 CREATE WITH TURTLE FUNCTION AN ARROW POINTING TO THE RIGHT def drawArrow(turtle, size): for i in range(0, 4): turtle.forward(size) turtle.right(90) drawArrow(turtle, 100) Python Guest generate functionFri, 21 Apr 2023 SUMA DE MATRICES CON VECTORES import numpy as np def add_matrix_and_vector(x, y): return x + y matrix = np.array([[1, 2], [3, 4]]) vector = np.array([6, 7]) add_matrix_and_vector(matrix, vector) Python Guest generate functionMon, 20 Mar 2023 SUMA Y RESTA int add(int a, int b) { return a + b; } int sub(int a, int b) { return a - b; } int main() { int a = 0, b = 0; cin >> a; cin >> b; cout << add(a, b) << endl; cout << sub(a, b) << endl; return 0; } C++ Guest generate functionSat, 22 Apr 2023 CREATE A FUNCTION THAT TAKES KEY AND PLAIN TEXT AS INPUTS AND OUTPUTS A CIPHER TEXT USING HILL CIPHER ALGORITHM public string hillCipher(string key, string plainText) { string cipherText = ""; int[] keyInt = key.Select(c => (int)c).ToArray(); int[] plainTextInt = plainText.Select(c => (int)c).ToArray(); int[,] keyMatrix = new int[2, 2]; int[,] plainTextMatrix = new int[2, 1]; keyMatrix[0, 0] = keyInt[0] - 65; keyMatrix[0, 1] = keyInt[1] - 65; keyMatrix[1, 0] = keyInt[2] - 65; keyMatrix[1, 1] = keyInt[3] - 65; plainTextMatrix[0, 0] = plainTextInt[0] - 65; plainTextMatrix[1, 0] = plainTextInt[1] - 65; int[,] cipherTextMatrix = new int[2, 1]; cipherTextMatrix[0, 0] = (keyMatrix[0, C# Guest text to sql syntaxWed, 26 Jul 2023 UTILIZANDO COMO REFERENCIA LA BASE DE DATOS DE NORTHWIND CREAR UNA FUNCIÓN QUE RETORNE EL VALOR TOTAL DE LAS ÓRDENES DE COMPRA DE UN EMPLEADO DETERMINADO EN UN MES Y UN PERIODO DETERMINADO. SELECT SUM(Total) FROM Orders WHERE OrderDate LIKE "1998-01-%" AND EmployeeID=5; Guest generate html from descriptionTue, 21 Mar 2023 UNA TABLA CON VARIAS CASILLAS <table> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> <tr> <td>4</td> <td>5</td> <td>6</td> </tr> <tr> <td>7</td> <td>8</td> <td>9</td> </tr> </table> Guest generate functionMon, 10 Jul 2023 A) ESCRIBA UNA FUNCIÓN QUE RECIBA UN VECTOR DE ENTEROS Y OBTENGA LA POSICIÓN DEL MENOR ENTERO. B) ESCRIBA UNA FUNCIÓN QUE RECIBA UN VECTOR DE ENTEROS Y UNA POSICIÓN, ELIMINE EL ENTERO EN ESA POSICIÓN... #include <iostream> #include <vector> using namespace std; int menor(vector<int> v){ int minimo = v[0]; int posicion = 0; for(int i=0; i<v.size(); i++){ if(v[i] < minimo){ minimo = v[i]; posicion = i; } } return posicion; } int eliminar(vector<int> &v, int posicion){ int valor = v[posicion]; for(int i=posicion; i< v.size(); i++){ v[i] = v[i+1]; } v.pop_back(); return valor; } int main(){ vector<int> v1 = {1,2,3,4}; vector<int> v2 = {6,5,8,7}; vector<int> v3; int n = v1.size(); C++ Guest generate functionThu, 23 Mar 2023 FUNCION QUE AL INTRODUCIR UN NUMERO ME DIGA SI ES PRIMO O NO, function isPrime(num) { if (num === 2) { return true; } else if (num > 1) { for (var i = 2; i < num; i++) { if (num % i !== 0) { return true; } } } return false; } console.log(isPrime(10)) Javascript Guest generate functionMon, 05 Jun 2023 RECIBIR DOS NÚMEROS ENTEROS Y OBTENER EL RESULTADO DE LA DIVISIÓN ENTERA O EL DE LA DIVISIÓN CON DECIMALES SEGÚN SEA LA PREFERENCIA DEL USUARIO. RESOLVERLO CON METODOS int a, b; Console.WriteLine("Dame dos numeros para dividirlos"); a = int.Parse(Console.ReadLine()); b = int.Parse(Console.ReadLine()); Console.WriteLine("El resultado de la división entera es {0}", DivEntera(a, b)); Console.WriteLine("El resultado de la división decimal es {0}", DivDecimal(a, b)); int DivEntera(int a, int b) { return a / b; } double DivDecimal(int a, int b) { return (double) a/b; } C# Guest generate functionSun, 23 Apr 2023 REALICE UNA DIAGRAMA DE BARRAS CON LA INFORMACIÓN ENCONTRADA EN LA COLUMNA "NIVEL"; DONDE ÉSTE TENGA TITULO, MARCADO EL EJE , EL EJE , LAS BARRAS SEAN COLOREADAS DE DIFERENTE COLOR Y LAS CATEGORÍAS EN LA COLUMNA "NIVEL" TENGA MARQUILLAS. df = pd.read_csv("/home/oscar/Documentos/python/data.csv") df.head() df['Nivel'].value_counts().plot(kind="bar", color=["green", "blue", "red"]) plt.xlabel("Nivel") plt.ylabel("Frecuencia") plt.title("Diagrama de barras") plt.show() Python Guest generate functionSat, 18 Mar 2023 CREA UNA FUNCION PARA AGREGAR RECTANGULOS ALEATORIOS CON PYGAME # Add a rectangle color = (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255) ) pygame.draw.rect(screen, color, [random.randint(0, 200), random.randint(0, 200), 50, 50]) Python Guest generate functionTue, 23 May 2023 CREATE WITH TURTLE FUNCTION AN ARROW POINTING TO THE RIGHT def drawArrow(turtle, size): for i in range(0, 4): turtle.forward(size) turtle.right(90) drawArrow(turtle, 100) Python Guest generate functionSun, 29 Jan 2023 ASSOCIATE TEACHER JOB AT PUSTAKAAR (ANSH FOUNDATION) int salary; if salaries > 50000: salary = 50000 else: salary = salaries print("You are hired") return salary C++ Guest generate functionFri, 21 Apr 2023 SUMA DE MATRICES CON VECTORES import numpy as np def add_matrix_and_vector(x, y): return x + y matrix = np.array([[1, 2], [3, 4]]) vector = np.array([6, 7]) add_matrix_and_vector(matrix, vector) Python Guest generate functionTue, 25 Apr 2023 EL BANCO GERENCIAL DE DESARROLLO BGD, QUIERE DETERMINAR CUÁNTO PAGARÁ UN CLIENTE QUE TOME UN PRÉSTAMO NO MAYOR DE 200,000.00 PARA PAGARLO EN 24 MESES A UNA TASA DE INTERÉS DE 2% MENSUAL. SE REQUIERE SABER EL VALOR O MONTO TOTAL QUE PAGARÁ EL CLIENTE EN 2 AÑOS ENTRE CAPITAL E INTERESES. def main() principal = 200000 monthly_interest_rate = 0.02 number_of_payments = 24 payment = principal * ((monthly_interest_rate * (1 + monthly_interest_rate)**number_of_payments) / ((1 + monthly_interest_rate)**number_of_payments - 1)) return payment C# Guest generate functionThu, 15 Jun 2023 PROBLEMAS CON ARREGLOS UNIDIMENCIONALES Script function doubleArray(arr){ let newArray = arr.map(num => num * 2) return newArray } doubleArray([2,4,6,8]) // [4,8,12,16] Java Guest generate functionSun, 30 Apr 2023 DESCRIPCIÓN ESCRIBE UN PROGRAMA QUE EVALÚE LA SIGUIENTE FUNCIÓN PARA TODOS LOS ENTEROS DESDE X = 1 HASTA NUMERO. F(X) = E^2X − X ENTRADA UN NUMERO ENTERO TAL QUE 1 =< NUMERO =< 15. SALIDA UN TOT... #include <iostream> #include <cmath> using namespace std; int main() { int numero; cin >> numero; for(int x = 1; x <= numero; x++) { double fx = pow(2.71828, 2 * x) - x; cout << x << ' ' << fx << endl; } return 0; } C++ View User generate functionThu, 12 Jan 2023 SUBMENUEL’S EVENT LISTENER SHOULD UPDATE THE CONTENTS OF MAINEL TO THE CONTENTS OF THE <A> ELEMENT, WITHIN AN <H1>, CLICKED WITHIN SUBMENUEL. const subMenuEl = document.querySelector("#sub-menu") const mainEl = document.querySelector("#main") subMenuEl.addEventListener("click", function(event) { const h1El = document.createElement("h1") h1El.innerHTML = event.target.innerHTML mainEl.innerHTML = "" mainEl.appendChild(h1El) }) Javascript Guest generate functionThu, 06 Apr 2023 GENERAR TABLA DE MYSQL let sql = require('sql') sql.query(sql.select().from(table).toString()) Javascript Guest generate functionMon, 03 Jul 2023 I NEED MY IMAGE THE SIZE OF THE PAGE: .BACKGROUNDR { PADDING: 20%; POSITION: ABSOLUTE; OPACITY: 0.1; MAX-WIDTH: 100%; MAX-HEIGHT: 100%; BACKGROUND-SIZE: COVER; BACKGROUND-POSITION: CENTER 100%; } int main(int argc, char** argv) { // Create a file reader cv::VideoCapture cap; // Open the video file cap.open(0); // Create a window to display the video cv::namedWindow("Video"); // Show the image in the window cv::imshow("Video", video); // Wait for the user to press a button cv::waitKey(0); } C++ Guest regexTue, 15 Nov 2022 CHECK FOR VAT /^\d{8}[a-zA-Z]$/ Guest language from codeFri, 21 Jul 2023 DISEÑE UN PROGRAMA QUE ME PERMITA EL FUNCIONAMIENTO DE UN CAJERO AUTOMÁTICO CON LAS FUNCIONES RETIRAR,DEPOSITAR Y SALDO DE 1200 Python Guest docstringFri, 10 Feb 2023 GENRATE FASTEST CRYPTO SWAP SEX def add(a, b): """Returns the sum of a and b.""" return a + b Guest generate functionSun, 04 Dec 2022 OFFLINE SPEAK FUNCTION FOR WINDOWS import os def speak(text): os.system(f'powershell.exe -Command "Add-Type -AssemblyName System.speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak(\'{text}\');"') speak('Test') Python Guest generate functionWed, 07 Dec 2022 WRITE ME A STATEFUL CANBUS SCHEDULER FOR 2 DIFFERENT DEVICE TYPES EACH HAVING 50 OR 70 MESSAGES, RESPECTIVELY, AND WHERE DATA GET MESSAGES ARE SCHEDULED AT THE BEGINNING OF A PREDEFINED TIMESLOT, THEN... def add(a, b): return a + b add(1, 2) Python Guest text to sql syntaxTue, 17 Jan 2023 ВЫГРУЗИТЬ ВСЕ СТОЛБЦЫ ТАБЛИЦ С ОПИСАНИЕМ ВСЕХ ТИПОВ ПОЛЕЙ ПО ГРУППАМ ТИПОВ(НАПРИМЕР ТЕКСТ, JSONB, ЧИСЛО, ВЕЩЕСТВЕННОЕ ЧИСЛО) ЧЕРЕЗ CASE НА РУССКОМ ЯЗЫКЕ. POSTGRESQL ВЫГРУЗИТЬ БЕЗ ПРОБЕЛОВ И ПЕРЕНОСОВ. ВЫГРУЗИТЬ ОДНОЙ СТРОКОЙ SELECT string_agg(case data_type when 'character varying' then 'text' when 'integer' then 'integer' when 'double precision' then 'real' when 'jsonb' then 'jsonb' end,',') FROM information_schema.columns where table_schema='public' and table_name='customers'; View User generate html from descriptionTue, 06 Jun 2023 SACAME EL PROMEDIO DE 3 NUMEROS ENTEROS SUMADOS ENTRE SI MISMOS <html> <head> <script> function promedio(n1,n2,n3){ var resultado; resultado = n1+n2+n3; return resultado; } </script> </head> <body> <div class="container" id="main"> <script> document.write(promedio(3,5,7)); </script> </div> </body> </html> Guest generate functionThu, 08 Dec 2022 FIND THE MIN AND MAX IN ARRAY OF 10000 NUMBERS USING TWO THREADS int add(int a, int b) { return a + b; } C# Guest generate functionFri, 31 Mar 2023 ARDUINO NANOで、奇数回ボタンを押せばサーボモータが動きながらLEDが光り、偶数回ボタンを押せばサーボモータが元の状態に戻り、LEDが消えるプログラムをC言語で書いてください。 #include <Servo.h> Servo myservo; int ledPin = 13; int servoPin = 9; int buttonPin = 2; int buttonValue = 0; int counter = 0; void setup() { myservo.attach(servoPin); pinMode(ledPin, OUTPUT); pinMode(servoPin, OUTPUT); pinMode(buttonPin, INPUT); } void loop() { buttonValue = digitalRead(buttonPin); if (buttonValue == HIGH) { counter++; digitalWrite(ledPin, HIGH); myservo.write(180); delay(1000); digitalWrite(ledPin, LOW); myservo.write(0); delay(1000); } else { if (counter % 2 == 1) { digitalWrite(ledPin, HIGH); myservo.write(180); delay(1000); digitalWrite(ledPin, LOW); myservo C Guest generate functionSun, 30 Jul 2023 EXTRACTS WORK EXPERIENCE FROM UNSTRUCTURED RESUME TEXT USING A TRAINED MLP MODEL LOADED WITH SPACY import spacy import sys import pickle nlp = spacy.load('en_core_web_sm', disable=['parser', 'tagger']) def extract_experience(text): doc = nlp(text) X = pd.DataFrame([[ent.text, ent.start_char, ent.end_char, ent.label_] for ent in doc.ents], columns = ["text", "start", "end", "label"]) X_test = X[X["label"] == "ORG"].copy() X_test["tokens"] = X_test["text"].apply(lambda x: [token.text for token in x.split()]) with open(f"model.pkl", 'rb') as f: model = pickle.load(f) y_pred = model.predict(X_test["tokens"]) return list(zip(X_test["text"], y_pred)) Python Guest generate functionThu, 18 May 2023 MOSTRAR TODOS LOS MÚLTIPLOS DE 8 QUE HAY HASTA EL VALOR 500. DEBE APARECER EN PANTALLA 8 - 16 - 24, ETC. int main(){ int i; for(i=8;i<=500;i+=8){ printf("\n%d",i); } return 0; } C Guest generate functionWed, 14 Jun 2023 SUMAR LOS NUMEROS IMPARES DEL 0 AL 200 E IMPRIMIR SU VALOR #include <iostream> int main() { int suma = 0; for (int i = 0; i < 200; ++i) { if(i % 2 != 0) suma += i; } std::cout << suma << std::endl; return 0; } C++ Guest generate functionSun, 16 Apr 2023 HEXADECIMAL C Guest generate functionThu, 30 Mar 2023 GENERAME UN CODIGO EN PYTHON PARA EXTRAER DATOS DE UN CANAL DE TELEGRAM, EL CANAL SE LLAMA MONITOR DÓLAR VZLA import requests def get_token(): return '835500611:AAF4cO6d0U6xRU6O-kSbY_Pf5G2f5Z5q5KQ' def get_url(): token = get_token() return f'https://api.telegram.org/bot{token}/' def get_updates(): url = get_url() + 'getUpdates' response = requests.get(url) return response.json() Python Guest generate functionWed, 03 May 2023 ** REALIZAR UN PROGRAMA QUE LEA UNA LETRA DE LA A A LA L. IMPRIMIR EN PANTALLA EL MES CORRESPONDIENTE A LA LETRA. EJEMPLO A ES ENERO, B ES FEBRERO, C ES MARZO, ETC. int main(){ char letra, mes[13]; printf("Ingrese una letra de la A a la L: "); scanf("%c", &letra); switch(letra){ case 'A': case 'a': printf("Enero"); break; case 'B': case 'b': printf("Febrero"); break; case 'C': case 'c': printf("Marzo"); break; case 'D': case 'd': printf("Abril"); break; case 'E': case 'e': printf("Mayo"); break; case 'F': case 'f': printf("Junio"); break; case 'G': case 'g': printf("Julio"); break; case 'H': case 'h': printf("Agosto"); break; case 'I': case C++ Guest generate functionTue, 07 Mar 2023 ファネル生成するためのデータを生成 def get_fanels(img, gt, mask, nlabels): fanels = [] for i in range(nlabels): fanel = img.copy() fanel[gt != i] = 0 fanel = fanel * mask fanels.append(fanel) return np.array(fanels) Python Guest generate functionSun, 20 Nov 2022 WRITE A PHP PROGRAM TO CHECK WHETHER THE GIVEN STRING IS PALINDROME OR NOT. function palindrome_check($string){ if (strrev($string) == $string){ echo "The string is a palindrome"; } else { echo "The string isn't a palindrome"; } } palindrome_check("madam"); PHP Guest generate functionWed, 22 Mar 2023 FUNCION OPERAR def operar(a, b, op): if op == "add": return a + b elif op == "sub": return a - b elif op == "mul": return a * b elif op == "div": return a / b else: return "not valid" operar(1, 2, "mul") Java Guest generate functionWed, 31 May 2023 CREE UNA FUNCIÓN QUE RECIBE COMO PARÁMETRO UN NÚMERO ENTERO N, DONDE 0 <= N < 100, Y RETORNA LA SUMATORIA DE LOS NÚMEROS ENTEROS CONTENIDOS EN EL INTERVALO [1...100], ESPACIADOS POR N NÚMEROS. (0,99,9) def sum_of_integers(n): sumatoria = 0 for i in range(1, 101): if i % n == 0: sumatoria += i return sumatoria sum_of_integers(3) Python Guest generate functionMon, 20 Mar 2023 SUMA Y RESTA int add(int a, int b) { return a + b; } int sub(int a, int b) { return a - b; } int main() { int a = 0, b = 0; cin >> a; cin >> b; cout << add(a, b) << endl; cout << sub(a, b) << endl; return 0; } C++ Guest generate functionSun, 30 Apr 2023 CALCULAR CUANTAS CATEGORÍAS TIENE UNA VARIABLE SIN USAR LIBRERÍAS categories.of.variable <- function(x){ return(length(levels(x))) } R Guest generate functionSun, 04 Dec 2022 VOSK OFFLINE SPEECH RECOGNITION AND SELF LEARNING FROM CONVERSATION def vosk(question, answer): #Vosk return answer Python Guest generate functionWed, 02 Aug 2023 I WANT TO MAKE A PANEL WITH A TEXT BOX AND A BUTTON TO EXECUTE AND ANOTHER TO DELETE AND ANOTHER TO COPY FROM THE CLIPBOARD # public static Panel CreatePanel() { var panel = new Panel(); var textBox = new TextBox(); textBox.Location = new Point(10, 10); textBox.Size = new Size(200, 50); panel.Controls.Add(textBox); var button = new Button(); button.Location = new Point(10, 70); button.Size = new Size(200, 50); button.Text = "Execute"; panel.Controls.Add(button); return panel; } private void button1_Click(object sender, EventArgs e) { var panel = CreatePanel(); Controls.Add(panel); } C Guest generate functionSun, 11 Jun 2023 ESCRIBIR UN PROGRAMA QUE LEA LAS DIMENSIONES DE UNA MATRIZ, LA VISUALICE Y ENCUENTRE SU MAYOR Y SU MENOR ELEMENTO Y SUS POSICIONES RESPECTIVAS. Script const readline = require('readline').createInterface({ input: process.stdin, output: process.stdout }) readline.question(`dime cuantas filas quieres`, (rows) => { readline.question(`dime cuantas columnas quieres`, (columns) => { console.log(`Vamos a crear una matriz de ${rows} filas y ${columns} columnas`) let matrix = createMatrix(rows, columns) printMatrix(matrix) let minInfo = getMin(matrix) console.log(`El minimo es: ${minInfo.value} y está en las posiciones (${minInfo.i}, ${minInfo.j})`) let maxInfo = getMax(matrix) console.log(`El maximo es: ${maxInfo.value} y está en las posiciones (${maxInfo.i}, ${maxInfo.j})`) readline.close() Java View User generate functionSat, 05 Nov 2022 ROUND TO THIRD COMMA PLACE func round(input float64) float64 { return math.Floor(input*1000) / 1000 } Go Guest generate functionWed, 12 Apr 2023 IMPLEMENTAR UNA FUNCIÓN QUE AUMENTE EL VALOR RECIBIDO EN 5 HASTA UN LÍMITE DE 8 VECES. // RETORNAR EL VALOR FINAL. // UTILIZAR EL BUCLE DO-WHILE. function aumento(n){ var i = 0; do{ n += 5; i += 1; }while(i<8) return n; } aumento(5) Javascript Guest generate functionWed, 03 May 2023 ** REALIZAR UN PROGRAMA QUE LEA UNA LETRA DE LA A A LA L. IMPRIMIR EN PANTALLA EL MES CORRESPONDIENTE A LA LETRA. EJEMPLO A ES ENERO, B ES FEBRERO, C ES MARZO, ETC. int main(){ char letra, mes[13]; printf("Ingrese una letra de la A a la L: "); scanf("%c", &letra); switch(letra){ case 'A': case 'a': printf("Enero"); break; case 'B': case 'b': printf("Febrero"); break; case 'C': case 'c': printf("Marzo"); break; case 'D': case 'd': printf("Abril"); break; case 'E': case 'e': printf("Mayo"); break; case 'F': case 'f': printf("Junio"); break; case 'G': case 'g': printf("Julio"); break; case 'H': case 'h': printf("Agosto"); break; case 'I': case C++ Guest generate functionThu, 22 Jun 2023 CONSTRUYA UNA FUNCIÓN QUE RECIBA COMO PARÁMETRO UNA LISTA Y UNA VERDURA, LA FUNCIÓN DEBE AGREGAR EL ELEMENTO A LA LISTA SOLO SI ESTE NO ESTA EN LA LISTA, ES DECIR NO PUEDEN HABER VERDURAS REPETIDAS. LA FUNCIÓN RETORNA UN MENSAJE SI SE PUDO AGREGAR O NO LA VERDURA A LA LISTA. def agregar_verdura(lista, verdura): if verdura not in lista: lista.append(verdura) return "{} agregada exitosamente".format(verdura) else: return "La verdura ya está en la lista" verduras = ['lechuga', 'cebolla'] agregar_verdura(verduras, 'tomate') Python Guest generate functionMon, 17 Apr 2023 DESIGN A RECURSIVE FUNCTION, EVEN(X), WHERE X IS A NATURAL, THAT RETURNS TRUE IF X IS EVEN CONSIDER X==0 AND X==1 AS THE BASE CASES. def even(x): if x == 1 or x == 0: return False else: return even(x - 2) even(3) Python Guest generate html from descriptionSat, 14 Jan 2023 +79186788247 MAIL <a href="mailto:+79186788247">+79186788247</a> Guest generate functionTue, 15 Nov 2022 THREAD CREATE ANOTHER THREAD #include <stdio.h> #include <pthread.h> void *thread_func(void *arg) { printf("New thread created\n"); return NULL; } int main() { pthread_t tid; pthread_create(&tid, NULL, thread_func, NULL); pthread_join(tid, NULL); return 0; } C Guest generate functionWed, 31 May 2023 UN PROGRAMA QUE MUESTRE UN MENSAJE #include <iostream> int main() { std::cout << "Hello World!" << std::endl; return 0; } C++ Guest regex explanationTue, 20 Dec 2022 INPLACE ROTATE SQUARE MATRIX BY 90 DEGREES BY FORMING CYCLES for (int i = 0; i < n / 2; i++) { for (int j = i; j < n - i - 1; j++) { int tmp = mat[i][j]; mat[i][j] = mat[j][n - i - 1]; mat[j][n - i - 1] = mat[n - i - 1][n - j - 1]; mat[n - i - 1][n - j - 1] = mat[n - j - 1][i]; mat[n - j - 1][i] = tmp; } } Guest generate functionTue, 02 May 2023 PROGRAMA PARA HACER SUCESIONES DE CUADRADOS EN CONSOLA GRAFICA #include <math.h> #include <graphics.h> #include <iostream> using namespace std; int main() { int gd = DETECT, gm; initgraph(&gd, &gm, "C:\\TC\\BGI"); int x1, y1, x2, y2; x1 = 50; y1 = 50; int n; cout << "ingrese el numero de cuadrados:"; cin >> n; cout << "ingrese el lado del cuadrado"; cin >> x2; y2 = x2; for (int i = 1; i <= n; i++) { rectangle(x1, y1, x2, y2); x1 = x1 - 10; y1 = y1 - 10; x2 = x2 + 20; y2 = y2 + 20; } getch(); C++ Guest testsSat, 03 Jun 2023 LOCAL PLAYER = GAME.LOCALPLAYER LOCAL NAMETAG = SCRIPT.PARENT.SCREENGUI.TEXTLABEL NAMETAG.TEXT = PLAYER.NAME WHILE TRUE DO NAMETAG.POSITION = UDIM2.NEW(0, 0, 0, -NAMETAG.SIZE.Y.OFFSET) WAIT(0.5) END Guest translateSun, 02 Jul 2023 PROGRAM THAT DO ONE ADDS Script function add(a, b) { return a + b; } Java Guest generate functionFri, 19 May 2023 SPLIT THE STRING INTO PAIRS OF TWO CHARACTERS. IF THE STRING CONTAINS AN ODD NUMBER OF CHARACTERS, THEN THE MISSING SECOND CHARACTER OF THE FINAL PAIR SHOULD BE REPLACED WITH AN UNDERSCORE ('_'). DEF SPLIT_PAIRS(TEXT: STR) -> ITERABLE[STR]: def split_pairs(text): if len(text) % 2 == 0: for i in range(0, len(text),2): print(text[i] + text[i+1]) else: for i in range(0, len(text)-1, 2): print(text[i] + text[i+1]) print(text[-1] + '_') Python View User language from codeFri, 21 Jul 2023 DISEÑE UN PROGRAMA QUE ME PERMITA EL FUNCIONAMIENTO DE UN CAJERO AUTOMÁTICO CON LAS FUNCIONES RETIRAR,DEPOSITAR Y SALDO DE 1200 Python Guest generate functionSat, 22 Apr 2023 CALCULAR EL IVA 16% DE UN PRODUCTO. # public double IVA(double subtotal) { return subtotal * 0.16; } C Guest generate functionSat, 17 Dec 2022 HACK THE NSA def hack(n): return n * n * n * n * n * n * n * n * n * n hack(100000000000) Python Guest generate html from descriptionTue, 06 Jun 2023 SACAME EL PROMEDIO DE 3 NUMEROS ENTEROS SUMADOS ENTRE SI MISMOS <html> <head> <script> function promedio(n1,n2,n3){ var resultado; resultado = n1+n2+n3; return resultado; } </script> </head> <body> <div class="container" id="main"> <script> document.write(promedio(3,5,7)); </script> </div> </body> </html> Guest text to sql syntaxWed, 22 Mar 2023 CREAR DOS TABLAS CON CONSTRAINTS 1: Create table clientes ( id int not null primary key, name varchar(255) not null, email varchar(255) not null, password varchar(255) not null) 2: Create table admin ( id int not null primary key, name varchar(255) not null, email varchar(255) not null, password varchar(255) not null) Guest ContactPrivacy Policyzigarettenautomatkarte.de