SlideShare a Scribd company logo
/*
* 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 ejercicio_1;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio_1 {
/**
* @param args the command line arguments
*/
public static int dimension, c, multiplicacion=1;
public static Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("ingrese la dimension del arreglo");
dimension = scn.nextInt();
int vec[] = new int[dimension];
for (c = 0; c <= (dimension - 1); c = c + 1) {
System.out.println("Ingrese los numeros solo del 1 al 9");
System.out.println("Numeros " + c);
vec[c] = scn.nextInt();
if (vec[c] >= 0 & vec[c] <= 9) {
} else {
System.out.println("fuera de rango solo numeros del 0 al 9");
}
}
for (c = 0; c <= dimension; c++) {
System.out.println(c + ": " + vec[c]);
multiplicacion = multiplicacion * vec[c];
System.out.println("Multiplicacion " + multiplicacion);
}
}
}
……………………………………………………
/*
* 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 ejercicio2;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio2 {
/**
* @param args the command line arguments
*/
public static int dimension, co, posicion;
public static String nombre;
public static Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Ingrese la Dimension del vector");
dimension = scn.nextInt();
String vec[] = new String[dimension];
System.out.println("Ingrese el nombre que desea buscar ");
nombre = scn.next();
for (co = 0; co <= (dimension - 1); co = co + 1) {
System.out.println("Ingrese el nombre " + co);
vec[co] = scn.next();
if (vec[co].equals(nombre)) {
posicion = co;
System.out.println("SI EXISTE");
System.out.println("Esta en la pocicion " + posicion);
} else {
System.out.println("NO EXISTE");
}
}
}
}
/*
* 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 ejercicio3;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio3 {
/**
* @param args the command line arguments
*/
public static int co,co2,co3;
public static String aux,cadena;
public static Scanner scn=new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Ingrese la la palabra o el texto");
cadena=scn.next();
for(co=cadena.length()-1;co>=0;co=co-1){
aux=aux+cadena.charAt(co);
for(co2=0;co2<=aux.length()-1;co++){
if(aux.charAt(co2)==cadena.charAt(co2)){
co3++;
}
}
}
if(co3==cadena.length()){
System.out.println("Es un Palondrimo");
}else{
System.out.println("No es un Palondrimo");
}
}
}
__________________________________________
/*
* 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 ejercicio4;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio4 {
/**
* @param args the command line arguments
*/
public static int co, dimension, aux, posicion;
public static Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Ingrese la dimension del vector");
dimension = scn.nextInt();
int vec[] = new int[dimension];
for (co = 0; co <= (dimension - 1); co = co + 1) {
System.out.println("Ingrese los numeros");
System.out.println("numero " + co);
vec[co] = scn.nextInt();
aux = vec[co];
if (aux >= vec[co]) {
posicion = co;
}
}
System.out.println("El numero mayor es " + aux);
System.out.println("Y esta en la posicion " + posicion);
}
}
/*
* 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 ejercicio5;
import java.util.Scanner;
* @author user
*/
public class Ejercicio5 {
/**
* @param args the command line arguments
*/
public static int co, dimension, auxmayor, promedio, auxmenor, ac;
public static Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Ingrese la dimension del vector");
dimension = scn.nextInt();
int vec[] = new int[dimension];
for (co = 0; co <= (dimension - 1); co = co + 1) {
System.out.println("Ingrese los numeros");
System.out.println("Numero" + co);
vec[co] = scn.nextInt();
auxmayor = vec[0];
if (auxmayor > vec[co]) {
auxmayor = vec[co];
}
auxmenor = vec[0];
if (auxmenor < vec[co]) {
auxmenor = vec[co];
}
ac = ac + vec[co];
}
promedio = ac / co;
System.out.println("El numero Menor es= " + auxmayor);
System.out.println("El numero Mayor es= " + auxmenor);
System.out.println("Suma= " + ac);
System.out.println("Promedio= " + promedio);
}
}
/*
* 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 ejercicio6;
/**
*
* @author user
*/
public class Ejercicio6 {
/**
* @param args the command line arguments
*/
public static int num=1,num2=1,num3=0,co=0;
public static void main(String[] args) {
// TODO code application logic here
int vec[]=new int [10];
for(co=1;co<=9;co=co+1){
num3=(num3-num)+(num2-2);
num=num;
num2=num3;
vec[co]=num3;
System.out.println(vec[co]);
}
}
}
/*
* 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 ejercicio8;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio8 {
/**
* @param args the command line arguments
*/
public static int dimension,co,posicion;
public static Scanner scn=new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Ingrese la dimension del vector");
dimension=scn.nextInt();
int vec[]=new int [dimension];
for(co=0;co<=(dimension-1);co=co+1){
System.out.println("Ingrese los numeros");
System.out.println("numero"+co);
vec[co]=scn.nextInt();
if(vec[co]%2==0){
posicion=co;
System.out.println(vec[co]);
System.out.println(posicion);
}
}
}
}
/*
* 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 ejercicio9;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio9 {
/**
* @param args the command line arguments
*/
public static int secuencia=1,co=0,secuencia2;
public static int vec[]=new int [20];
public static Scanner scn=new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
for(co=1;co<=20;co=co+1){
if(co%2!=0){
secuencia2=secuencia-4;
vec[co]=secuencia;
}
else if(co%2==0){
secuencia2=secuencia+5;
vec[co]=secuencia2;
}
System.out.println(vec[co]);
}
}
}

More Related Content

What's hot

Java practice programs for beginners
Java practice programs for beginnersJava practice programs for beginners
Java practice programs for beginners
ishan0019
 
Advanced Java Practical File
Advanced Java Practical FileAdvanced Java Practical File
Advanced Java Practical FileSoumya Behera
 
Works Applications Test - Chinmay Chauhan
Works Applications Test - Chinmay ChauhanWorks Applications Test - Chinmay Chauhan
Works Applications Test - Chinmay ChauhanChinmay Chauhan
 
Use C++ to Manipulate mozSettings in Gecko
Use C++ to Manipulate mozSettings in GeckoUse C++ to Manipulate mozSettings in Gecko
Use C++ to Manipulate mozSettings in Gecko
Chih-Hsuan Kuo
 
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...Sunil Kumar Gunasekaran
 
Spock Testing Framework - The Next Generation
Spock Testing Framework - The Next GenerationSpock Testing Framework - The Next Generation
Spock Testing Framework - The Next Generation
BTI360
 
Tugas 2
Tugas 2Tugas 2
Tugas 2
Novi_Wahyuni
 
Introduction to Reactive Extensions (Rx)
Introduction to Reactive Extensions (Rx)Introduction to Reactive Extensions (Rx)
Introduction to Reactive Extensions (Rx)
Tamir Dresher
 
JVM Mechanics
JVM MechanicsJVM Mechanics
JVM Mechanics
Doug Hawkins
 
Final JAVA Practical of BCA SEM-5.
Final JAVA Practical of BCA SEM-5.Final JAVA Practical of BCA SEM-5.
Final JAVA Practical of BCA SEM-5.
Nishan Barot
 
Security Events correlation with ESPER
Security Events correlation with ESPERSecurity Events correlation with ESPER
Security Events correlation with ESPER
Nikolay Klendar
 
Java PRACTICAL file
Java PRACTICAL fileJava PRACTICAL file
Java PRACTICAL file
RACHIT_GUPTA
 
Spock framework
Spock frameworkSpock framework
Spock framework
Djair Carvalho
 
JVM Mechanics: Understanding the JIT's Tricks
JVM Mechanics: Understanding the JIT's TricksJVM Mechanics: Understanding the JIT's Tricks
JVM Mechanics: Understanding the JIT's Tricks
Doug Hawkins
 
Java Performance Puzzlers
Java Performance PuzzlersJava Performance Puzzlers
Java Performance Puzzlers
Doug Hawkins
 
201913001 khairunnisa progres_harian
201913001 khairunnisa progres_harian201913001 khairunnisa progres_harian
201913001 khairunnisa progres_harian
KhairunnisaPekanbaru
 
Fia fabila
Fia fabilaFia fabila
Fia fabila
fiafabila
 
Java Practical File Diploma
Java Practical File DiplomaJava Practical File Diploma
Java Practical File Diploma
mustkeem khan
 

What's hot (20)

Java practice programs for beginners
Java practice programs for beginnersJava practice programs for beginners
Java practice programs for beginners
 
Advanced Java Practical File
Advanced Java Practical FileAdvanced Java Practical File
Advanced Java Practical File
 
Works Applications Test - Chinmay Chauhan
Works Applications Test - Chinmay ChauhanWorks Applications Test - Chinmay Chauhan
Works Applications Test - Chinmay Chauhan
 
Use C++ to Manipulate mozSettings in Gecko
Use C++ to Manipulate mozSettings in GeckoUse C++ to Manipulate mozSettings in Gecko
Use C++ to Manipulate mozSettings in Gecko
 
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
 
Thread
ThreadThread
Thread
 
Unit Testing with Foq
Unit Testing with FoqUnit Testing with Foq
Unit Testing with Foq
 
Spock Testing Framework - The Next Generation
Spock Testing Framework - The Next GenerationSpock Testing Framework - The Next Generation
Spock Testing Framework - The Next Generation
 
Tugas 2
Tugas 2Tugas 2
Tugas 2
 
Introduction to Reactive Extensions (Rx)
Introduction to Reactive Extensions (Rx)Introduction to Reactive Extensions (Rx)
Introduction to Reactive Extensions (Rx)
 
JVM Mechanics
JVM MechanicsJVM Mechanics
JVM Mechanics
 
Final JAVA Practical of BCA SEM-5.
Final JAVA Practical of BCA SEM-5.Final JAVA Practical of BCA SEM-5.
Final JAVA Practical of BCA SEM-5.
 
Security Events correlation with ESPER
Security Events correlation with ESPERSecurity Events correlation with ESPER
Security Events correlation with ESPER
 
Java PRACTICAL file
Java PRACTICAL fileJava PRACTICAL file
Java PRACTICAL file
 
Spock framework
Spock frameworkSpock framework
Spock framework
 
JVM Mechanics: Understanding the JIT's Tricks
JVM Mechanics: Understanding the JIT's TricksJVM Mechanics: Understanding the JIT's Tricks
JVM Mechanics: Understanding the JIT's Tricks
 
Java Performance Puzzlers
Java Performance PuzzlersJava Performance Puzzlers
Java Performance Puzzlers
 
201913001 khairunnisa progres_harian
201913001 khairunnisa progres_harian201913001 khairunnisa progres_harian
201913001 khairunnisa progres_harian
 
Fia fabila
Fia fabilaFia fabila
Fia fabila
 
Java Practical File Diploma
Java Practical File DiplomaJava Practical File Diploma
Java Practical File Diploma
 

Viewers also liked

Relex foretagspresentation 11.4.2013 roger
Relex foretagspresentation 11.4.2013 rogerRelex foretagspresentation 11.4.2013 roger
Relex foretagspresentation 11.4.2013 rogerRoger Sittnikow
 
волшебный кот черемискина
волшебный кот черемискинаволшебный кот черемискина
волшебный кот черемискинаmorozovaeyu
 
Harry Daniels HJC Adviseurs
Harry Daniels HJC AdviseursHarry Daniels HJC Adviseurs
Harry Daniels HJC AdviseursTIENevents
 
Nghề Nhân Sự
Nghề Nhân SựNghề Nhân Sự
Nghề Nhân Sự
Anh Tran
 
QR Codes at STA
QR Codes at STAQR Codes at STA
QR Codes at STA
Simon Brown
 
Projet gerland escrime
Projet gerland escrimeProjet gerland escrime
Projet gerland escrimemerlin69
 
International flow of funds
International flow of fundsInternational flow of funds
International flow of funds
Atha Ullah Akakheel
 
Lowprice Montana Porch Swing Finish Lacquered
Lowprice Montana Porch Swing Finish LacqueredLowprice Montana Porch Swing Finish Lacquered
Lowprice Montana Porch Swing Finish Lacquered
ontime460
 

Viewers also liked (12)

Relex foretagspresentation 11.4.2013 roger
Relex foretagspresentation 11.4.2013 rogerRelex foretagspresentation 11.4.2013 roger
Relex foretagspresentation 11.4.2013 roger
 
волшебный кот черемискина
волшебный кот черемискинаволшебный кот черемискина
волшебный кот черемискина
 
Rocca
RoccaRocca
Rocca
 
Front
FrontFront
Front
 
Harry Daniels HJC Adviseurs
Harry Daniels HJC AdviseursHarry Daniels HJC Adviseurs
Harry Daniels HJC Adviseurs
 
Art styles 2
Art styles 2Art styles 2
Art styles 2
 
Nghề Nhân Sự
Nghề Nhân SựNghề Nhân Sự
Nghề Nhân Sự
 
QR Codes at STA
QR Codes at STAQR Codes at STA
QR Codes at STA
 
Bridges of valencia
Bridges of valenciaBridges of valencia
Bridges of valencia
 
Projet gerland escrime
Projet gerland escrimeProjet gerland escrime
Projet gerland escrime
 
International flow of funds
International flow of fundsInternational flow of funds
International flow of funds
 
Lowprice Montana Porch Swing Finish Lacquered
Lowprice Montana Porch Swing Finish LacqueredLowprice Montana Porch Swing Finish Lacquered
Lowprice Montana Porch Swing Finish Lacquered
 

Similar to Base de-datos

Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
Erika Susan Villcas
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
Erika Susan Villcas
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
Erika Susan Villcas
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
Erika Susan Villcas
 
Estructura secuencial -garcia
Estructura secuencial -garciaEstructura secuencial -garcia
Estructura secuencial -garcia
Daneziita Laulate Flores
 
Trabajo
TrabajoTrabajo
Chapter i(introduction to java)
Chapter i(introduction to java)Chapter i(introduction to java)
Chapter i(introduction to java)
Chhom Karath
 
Object Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ ExamsObject Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ Exams
MuhammadTalha436
 
Attributes & .NET components
Attributes & .NET componentsAttributes & .NET components
Attributes & .NET components
Bình Trọng Án
 
Java programming lab manual
Java programming lab manualJava programming lab manual
Java programming lab manual
sameer farooq
 
Introduction to the Stat-JR software package
Introduction to the Stat-JR software packageIntroduction to the Stat-JR software package
Introduction to the Stat-JR software package
University of Southampton
 
java-programming.pdf
java-programming.pdfjava-programming.pdf
java-programming.pdf
Prof. Dr. K. Adisesha
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
xavier john
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
xavier john
 
c++ practical Digvajiya collage Rajnandgaon
c++ practical  Digvajiya collage Rajnandgaonc++ practical  Digvajiya collage Rajnandgaon
c++ practical Digvajiya collage Rajnandgaon
yash production
 

Similar to Base de-datos (20)

Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
 
Problemas secuenciales.
Problemas secuenciales.Problemas secuenciales.
Problemas secuenciales.
 
Estructura secuencial -garcia
Estructura secuencial -garciaEstructura secuencial -garcia
Estructura secuencial -garcia
 
Trabajo
TrabajoTrabajo
Trabajo
 
Chapter i(introduction to java)
Chapter i(introduction to java)Chapter i(introduction to java)
Chapter i(introduction to java)
 
Object Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ ExamsObject Oriented Solved Practice Programs C++ Exams
Object Oriented Solved Practice Programs C++ Exams
 
Attributes & .NET components
Attributes & .NET componentsAttributes & .NET components
Attributes & .NET components
 
Java programming lab manual
Java programming lab manualJava programming lab manual
Java programming lab manual
 
Introduction to the Stat-JR software package
Introduction to the Stat-JR software packageIntroduction to the Stat-JR software package
Introduction to the Stat-JR software package
 
java-programming.pdf
java-programming.pdfjava-programming.pdf
java-programming.pdf
 
TechTalk - Dotnet
TechTalk - DotnetTechTalk - Dotnet
TechTalk - Dotnet
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
 
CP 04.pptx
CP 04.pptxCP 04.pptx
CP 04.pptx
 
c++ practical Digvajiya collage Rajnandgaon
c++ practical  Digvajiya collage Rajnandgaonc++ practical  Digvajiya collage Rajnandgaon
c++ practical Digvajiya collage Rajnandgaon
 
Java Unit 1 Project
Java Unit 1 ProjectJava Unit 1 Project
Java Unit 1 Project
 

Recently uploaded

Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 

Recently uploaded (20)

Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 

Base de-datos

  • 1. /* * 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 ejercicio_1; import java.util.Scanner; /** * * @author user */ public class Ejercicio_1 { /** * @param args the command line arguments */ public static int dimension, c, multiplicacion=1; public static Scanner scn = new Scanner(System.in); public static void main(String[] args) { // TODO code application logic here System.out.println("ingrese la dimension del arreglo"); dimension = scn.nextInt(); int vec[] = new int[dimension]; for (c = 0; c <= (dimension - 1); c = c + 1) { System.out.println("Ingrese los numeros solo del 1 al 9"); System.out.println("Numeros " + c); vec[c] = scn.nextInt(); if (vec[c] >= 0 & vec[c] <= 9) { } else { System.out.println("fuera de rango solo numeros del 0 al 9"); } } for (c = 0; c <= dimension; c++) { System.out.println(c + ": " + vec[c]); multiplicacion = multiplicacion * vec[c]; System.out.println("Multiplicacion " + multiplicacion); } } } ……………………………………………………
  • 2. /* * 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 ejercicio2; import java.util.Scanner; /** * * @author user */ public class Ejercicio2 { /** * @param args the command line arguments */ public static int dimension, co, posicion; public static String nombre; public static Scanner scn = new Scanner(System.in); public static void main(String[] args) { // TODO code application logic here System.out.println("Ingrese la Dimension del vector"); dimension = scn.nextInt(); String vec[] = new String[dimension]; System.out.println("Ingrese el nombre que desea buscar "); nombre = scn.next(); for (co = 0; co <= (dimension - 1); co = co + 1) { System.out.println("Ingrese el nombre " + co); vec[co] = scn.next(); if (vec[co].equals(nombre)) { posicion = co; System.out.println("SI EXISTE"); System.out.println("Esta en la pocicion " + posicion); } else { System.out.println("NO EXISTE"); } } } }
  • 3. /* * 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 ejercicio3; import java.util.Scanner; /** * * @author user */ public class Ejercicio3 { /** * @param args the command line arguments */ public static int co,co2,co3; public static String aux,cadena; public static Scanner scn=new Scanner(System.in); public static void main(String[] args) { // TODO code application logic here System.out.println("Ingrese la la palabra o el texto"); cadena=scn.next(); for(co=cadena.length()-1;co>=0;co=co-1){ aux=aux+cadena.charAt(co); for(co2=0;co2<=aux.length()-1;co++){ if(aux.charAt(co2)==cadena.charAt(co2)){ co3++; } } } if(co3==cadena.length()){ System.out.println("Es un Palondrimo"); }else{ System.out.println("No es un Palondrimo"); } } } __________________________________________
  • 4. /* * 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 ejercicio4; import java.util.Scanner; /** * * @author user */ public class Ejercicio4 { /** * @param args the command line arguments */ public static int co, dimension, aux, posicion; public static Scanner scn = new Scanner(System.in); public static void main(String[] args) { // TODO code application logic here System.out.println("Ingrese la dimension del vector"); dimension = scn.nextInt(); int vec[] = new int[dimension]; for (co = 0; co <= (dimension - 1); co = co + 1) { System.out.println("Ingrese los numeros"); System.out.println("numero " + co); vec[co] = scn.nextInt(); aux = vec[co]; if (aux >= vec[co]) { posicion = co; } } System.out.println("El numero mayor es " + aux); System.out.println("Y esta en la posicion " + posicion); } }
  • 5. /* * 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 ejercicio5; import java.util.Scanner; * @author user */ public class Ejercicio5 { /** * @param args the command line arguments */ public static int co, dimension, auxmayor, promedio, auxmenor, ac; public static Scanner scn = new Scanner(System.in); public static void main(String[] args) { // TODO code application logic here System.out.println("Ingrese la dimension del vector"); dimension = scn.nextInt(); int vec[] = new int[dimension]; for (co = 0; co <= (dimension - 1); co = co + 1) { System.out.println("Ingrese los numeros"); System.out.println("Numero" + co); vec[co] = scn.nextInt(); auxmayor = vec[0]; if (auxmayor > vec[co]) { auxmayor = vec[co]; } auxmenor = vec[0]; if (auxmenor < vec[co]) { auxmenor = vec[co]; } ac = ac + vec[co]; } promedio = ac / co; System.out.println("El numero Menor es= " + auxmayor); System.out.println("El numero Mayor es= " + auxmenor); System.out.println("Suma= " + ac); System.out.println("Promedio= " + promedio); } }
  • 6. /* * 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 ejercicio6; /** * * @author user */ public class Ejercicio6 { /** * @param args the command line arguments */ public static int num=1,num2=1,num3=0,co=0; public static void main(String[] args) { // TODO code application logic here int vec[]=new int [10]; for(co=1;co<=9;co=co+1){ num3=(num3-num)+(num2-2); num=num; num2=num3; vec[co]=num3; System.out.println(vec[co]); } } }
  • 7. /* * 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 ejercicio8; import java.util.Scanner; /** * * @author user */ public class Ejercicio8 { /** * @param args the command line arguments */ public static int dimension,co,posicion; public static Scanner scn=new Scanner(System.in); public static void main(String[] args) { // TODO code application logic here System.out.println("Ingrese la dimension del vector"); dimension=scn.nextInt(); int vec[]=new int [dimension]; for(co=0;co<=(dimension-1);co=co+1){ System.out.println("Ingrese los numeros"); System.out.println("numero"+co); vec[co]=scn.nextInt(); if(vec[co]%2==0){ posicion=co; System.out.println(vec[co]); System.out.println(posicion); } } } }
  • 8. /* * 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 ejercicio9; import java.util.Scanner; /** * * @author user */ public class Ejercicio9 { /** * @param args the command line arguments */ public static int secuencia=1,co=0,secuencia2; public static int vec[]=new int [20]; public static Scanner scn=new Scanner(System.in); public static void main(String[] args) { // TODO code application logic here for(co=1;co<=20;co=co+1){ if(co%2!=0){ secuencia2=secuencia-4; vec[co]=secuencia; } else if(co%2==0){ secuencia2=secuencia+5; vec[co]=secuencia2; } System.out.println(vec[co]); } } }