Beruflich Dokumente
Kultur Dokumente
y Crdoba. Se desea saber el rango de variacin (valor mximo menos valor mnimo) en cada una de las 3 provincias. Las temperaturas estn ordenadas por provincia es decir estn separadas. Es posible que algn da no se haya registrado la temperatura, por lo tanto no se puede asegurar que son exactamente 365 temperaturas por provincia. El operador ingresara los valores en una cadena separando con ; cada medicin y cada provincia. Ejemplo 12;15;29;18;;32-10;12;23;16;.;31-20;21;21;22;35.. 1. Escribir una funcin para la carga de temperaturas. 2. Una funcin que devuelva el valor mximo y otra que devuelva el valor mnimo de un vector. 3. Una funcin que devuelva la amplitud trmica de cada provincia. 4. Implementar una funcin que reciba 2 cadenas y un numero n, devolver una cadena formada por los ltimos n caracteres de cada una de las dos cadenas dadas, tener en cuenta que las cadenas podran ser de longitud menor a n, en ese caso devolver una cadena nula. Hacer un programa principal con men de opciones repetitivo que invoque las funciones 1,2,3 mostrar los resultados de las provincias en cada opcin.
Method Summary char charAt(int index) Returns the character at the specified index. int compareTo(Object o) Compares this String to another Object. int compareTo(String anotherString) Compares two strings lexicographically. int compareToIgnoreCase(String str) Compares two strings lexicographically, ignoring case differences. String concat(String str) Concatenates the specified string to the end of this string. boolean contentEquals(StringBuffer sb) Returns true if and only if this String represents the same sequence of characters as the specified StringBuffer. static String copyValueOf(char[] data) Returns a String that represents the character sequence in the array specified. static String copyValueOf(char[] data, int offset, int count) Returns a String that represents the character sequence in the array specified. boolean endsWith(String suffix) Tests if this string ends with the specified suffix. boolean equals(Object anObject) Compares this string to the specified object. boolean equalsIgnoreCase(String anotherString) Compares this String to another String, ignoring case considerations. byte[] getBytes() Encodes this String into a sequence of bytes using the platform's default charset, storing the result into a new byte array. void getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin) Deprecated. This method does not properly convert characters into bytes. As of JDK 1.1, the preferred way to do this is via the the getBytes() method, which uses the platform's default charset. byte[] getBytes(String charsetName) Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array. void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) Copies characters from this string into the destination character array. int hashCode() Returns a hash code for this string. int indexOf(int ch) Returns the index within this string of the first occurrence of the specified character. int indexOf(int ch, int fromIndex) Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index. int indexOf(String str) Returns the index within this string of the first occurrence of the specified substring. int indexOf(String str, int fromIndex) Returns the index within this string of the first occurrence of the specified substring, starting at the specified index. String intern() Returns a canonical representation for the string object. int lastIndexOf(int ch) Returns the index within this string of the last occurrence of the specified character. int lastIndexOf(int ch, int fromIndex) Returns the index within this string of the last occurrence of the specified character, searching backward starting at the specified index.