Foro de programacion

programacion
RegistrateNewsletter
zonas:adsl:area-flash:area-php:area-asp:area-vb:area-photoshop:area-Vfox:area-Soft:area.:Mas
+ de 45.000 registrados
Secciones: Manuales-Diseño-Trucos-Recursos-Foros/Comunidad-Software-CodigoFuente-compras
AñadenosFavoritos
Secciones: Herramientas-Libros-Webmasters/Google-Noticias -Biblioteca-Cursos--Directorio-EmpleoN
Foros de Programacion - Cominidad de Programadores
 
Foros de programacion
es una web de ayuda a los programadores y webmasters, la buena utilizacion del foro sera el premio que tendremos para q este elemento sea util para los usuarios.

Colaborar: Si deseais ser moderadores de alguno de los foros estaremos encantados en que nos presteis esa ayuda , tan solo es necesario tener algun conocimiento
del tema que trata el foro y tener ganas ganas de colaborar para ser moderador mandar un mail indicando de que foro deseais ser moderador

Deseais que pongamos algun nuevo foro de programacion? ¿quieres crear un nuevo foro y ser su moderador? ponte en contacto con nosotros

Retroceder   Foros > Programacion > Pascal / TurboPascal

Respuesta
 
LinkBack Herramientas Desplegado
  #1 (permalink)  
Antiguo 19 de abril,2012, 00:39
Junior Member
Nivel basico por msg
 
Fecha de Ingreso: abr 2012
Mensajes: 1
Predeterminado Ayuda! Introducir texto por metodo de teclado multitap

esta es la tarea:La tarea: Lectura de texto con teclado telefónico.

Figura 1. Configuración estándar
En esta tarea se pide implementar un programa de lectura de texto escrito con el teclado del teléfono. Este teclado está típicamente formado por los dígitos del 0 al 9 y las teclas * y # . La dificultad principal reside en que la cantidad de teclas es significativamente menor que las necesarias para representar las letras y los caracteres de puntuación; por lo tanto se debe ofrecer un método para que el usuario pueda ingresar texto completo a partir de las teclas disponibles.

En esta tarea vamos a trabajar con la configuración estándar que asocia un conjunto de caracteres a cada letra como ilustra la figura:

Se implementará el método para el ingreso de texto conocido como “Multi-tap” donde cada símbolo se obtiene pulsando repetidas veces una tecla.

4.  El método multi-tap
En este método cada tecla del 0 al 9 tiene asociado una secuencia de caracteres. En general se parte de una configuración estándar que es la siguiente:

Tecla Caracteres
0 0
1 . , ? 1
2 a b c 2
3 d e f 3
4 g h i 4
5 j k l 5
6 m n o 6
7 p q r s 7
8 t u v 8
9 w x y z 9
# espacio
* minúscula/mayúscula
4.1  Ingreso de letras, números, espacios y símbolos

El método multi-tap puede resumirse en la siguiente regla:

Regla Multi-tap: Si c1,c2,…,cn es la secuencia de caracteres asociada con la tecla D, entonces para escribir el carácter ck hay que pulsar k veces la tecla D.
Las secuencias de caracteres se recorren circularmente. Esto significa que si la tecla D se pulsa (n+1) veces se obtiene el carácter c1 y así sucesivamente.

Por ejemplo, para escribir el texto:

hola10
se puede digitar lo siguiente:

44666555211110L
4.2  Pausa entre caracteres

El símbolo P (pausa) representa una separación entre dos repeticiones de la misma tecla con el fin de que no se interprete como una única repetición. Por ejemplo, para escribir el texto:

casa
se puede digitar lo siguiente:

222P277772L
Para las teclas # y 0 no es necesario introducir P entre dos apariciones consecutivas de estas teclas, ya que estas teclas tienen 1 símbolo asociado cada una. Por ejemplo para escribir el siguiente texto (un 0, seguidos de dos espacios, seguidos de tres 0):

0 000
se puede digitar lo siguiente:

0##000L
4.3  Cambiar entre mayúscula y minúscula

El programa comienza por defecto a escribir en minúscula. Para cambiar el modo (mayúscula/minúscula) se utiliza el símbolo * (asterisco), luego de ingresar un * el texto siguiente cambiará a mayúscula o minúscula según el modo anterior. En el texto pueden existir símbolos consecutivos de asterisco. Por ejemplo, para escribir el texto:

hOlA
se puede digitar lo siguiente:

44*666*555*2L
5.  La entrada y salida del programa
El programa toma como entrada cada línea de texto y despliega el texto asociado debajo de ella.

Todas las líneas terminan con el caracter: L, excepto la última que solo contiene el símbolo: S indicando el fin del programa (o Salir del programa).

Luego de cada fin de línea L hay un retorno de carro (enter).

Ejemplo de Sesión

446665552L
hola
*222P277772L
CASA
6*33#555P55526P666#*7*33P37776661L
Me llamo Pedro.
*23###444###66677771L
AD I OS.
S
6.  Se pide
Escribir un programa Pascal que se comporte de acuerdo a esta especificación.

Se debe utilizar el lenguaje Pascal tal como fue dado en el curso (ver FreePascal Y Pascal Estándar)

El programa entregado debe seguir el comportamiento que se presenta en esta letra. El formato de la entrada y la salida debe ser EXACTAMENTE IGUAL. De lo contrario la corrección automática de la tarea fallará.

Por ejemplo, se considera que una solución es incorrecta si se imprimen mensajes del tipo:

Bienvenido al programa para escribir en multi-tap”,
Por favor ingrese los parámetros iniciales: ,
“Chau.”
o cualquier variante que no respete lo que se establece en la letra.
Tampoco debe ponerse un read o readln al final para pausar el programa.

Se puede utilizar los siguientes conceptos visto en las clases teóricas y prácticas:

Tipos de datos:
Integer
Boolean
Char
Instrucciones:
Asignación
Entrada y Salida(read, write, WriteLn, ReadLn)
Secuencia
Selección (if, case)
Repetición (for, while, repeat)
En esta parte ‘’‘NO SE PUEDE”“ utilizar arreglos, subprogramas (procedimientos y funciones)


El programa que utilizo es el LAZARUS de FREE PASCAL...he realizado de muchas formas, esta es la ultima pero el porgrama no funciona. ya no se que hacer. LES AGRADECERE INFINITAMENTE SUS AYUDAS. MUCHAS, PERO MUCHAS GRACIAS!!!!


program actividad_entregable;
var
car, carant,entrada : char;
cont: integer;
mayuscula: boolean;

begin
writeln ('Pulse el numero las veces correspondientes y [Enter]');
readln (car);
while (car <> 's') do
begin
carant:=car;
cont:=0;
begin
while ((car=carant ) and (car<>'#') and (car<>'*') and (car<>'p'))do
begin
cont:= cont + 1;
read(car);
end;
if (car='1') then
case cont of
1: entrada:= '.';
2: entrada:= ',';
3: entrada:= '?';
4: entrada:= '1';
end;
read (car);
if (car='2') then
case cont of
1: entrada:= 'a';
2: entrada:= 'b';
3: entrada:= 'c';
4: entrada:= '2';
end;
if (car= '3') then
case cont of
1: entrada:= 'd';
2: entrada:= 'e';
3: entrada:= 'f';
4: entrada:= '3';
end;
read (car);
if (car= '4') then
case cont of
1: entrada:= 'g';
2: entrada:= 'h';
3: entrada:= 'i';
4: entrada:= '4';
end;
read (car);
if (car= '5') then
case cont of
1: entrada:= 'j';
2: entrada:= 'k';
3: entrada:= 'l';
4: entrada:= '5';
end;
read (car);
if (car= '6') then
case cont of
1: entrada:= 'm';
2: entrada:= 'n';
3: entrada:= 'o';
4: entrada:= '6';
end;
read (car);
if (car= '7') then
case cont of
1: entrada:= 'p';
2: entrada:= 'q';
3: entrada:= 'r';
4: entrada:= 's';
5: entrada:= '7';
end;
read (car);
if (car= '8') then
case cont of
1: entrada:= 't';
2: entrada:= 'u';
3: entrada:= 'v';
4: entrada:= '8';
end;
read (car);
if (car= '9') then
case cont of
1: entrada:= 'w';
2: entrada:= 'x';
3: entrada:= 'y';
4: entrada:= 'z';
5: entrada:= '9';
end;

read(car);
end;

end;

end.
Responder Citando
  #2 (permalink)  
Antiguo 26 de abril,2013, 18:48
Junior Member
Nivel Medio por Msg
 
Fecha de Ingreso: abr 2013
Mensajes: 16
Predeterminado No Enlistment Verification Gains Promote Loans

Refinancing a kredyty.personal loan can get rid of personal property finance loan insurance policies. A refinance is when you apply for a new property finance loan to cancel your present house loan. You need to discover a loan company, comprehensive a new mortgage software, submit your most current economic information and facts and wait around for an acceptance. Receiving rid of PMI with a refinance just isn't certain, but a couple of tips may well convince your lender to waive this charge.
A different go that impresses the creditors is having actions to boost the credit history rating that the applicant has. When seeking home finance loan loans with lousy credit history, the affect that the credit rating score has can be the change in between month-to-month repayments that are reasonably priced and way too pricey.
These are by significantly the most popular kredyty used for, but they are not often out there at the greatest phrases. Personalized financial loans are also acknowledged as signature loans mainly because they are ordinarily granted with only the term of the borrower that they will make the repayments. So, approving a $10,000 mortgage with poor credit is a risk for a financial institution.
The economic climate these days still has serious issues, but there is no reduction in the number of people in will need of further funding to just get by. And with most of us with constrained collateral to hand, in search of an unsecured personalized bank loan with negative credit is the only possibility. But is there an economical mortgage solution to be observed?
Rents and selling rates in a lot of places of the nation will nonetheless require to come down to reflect a return to extra sensible real estate values. But financial institutions, which were being also willing to lend one hundred% of the value of an inflated assets, are now unwilling to acknowledge their mistakes and allow home owners to sell for less than the overall amount owed on the home loan.
There is no escaping the point that, with the economic woes that are so common these days, the problem of funding a higher education education is manufactured all the harder. Faculty charges are large, especially in the most effective universities, and finding a way to spend them can be tough. When the school-goer is affected by undesirable kredyty ratings, it becomes even more durable. But luckily, there are university student financial loans for terrible credit history borrowers available.
Typically, the most effective position to come across a loan provider is on the web, with the Internet providing a direct route to some of the most affordable desire charges and most effective terms obtainable. Keep in mind that, when refinancing auto financial loans with lousy credit rating, the critical to the entire program is that repayments are slashed. This signifies the cheapest fees require to be uncovered.
This means the degree of fiscal chance the financial institution faces is decreased, which in convert means approval odds are amplified. Private bank loan loan providers have to have to experience assured of receiving their cash again, with revenue, and following that small else matters.
__________________
Modest Company Financial Loans Similar Article Content kredyty gotówkowe
Discovering The Enjoyable In Payday Loan Lender Articles
Responder Citando
  #3 (permalink)  
Antiguo 26 de abril,2013, 18:49
Junior Member
Nivel Medio por Msg
 
Fecha de Ingreso: abr 2013
Mensajes: 16
Predeterminado Why Consolidating College Or University Fiscal Loans Is The Apt Lead To Make good

Frequently all kalkulator kredytowy financial loan brokers have connections with several different loan companies and financial loan programs. What may be unachievable with one, can be incredibly probable with a further broker. If your score is all around 600 or a bit bigger, you will almost certainly have a pre-payment penalty. Really a lot all British isles undesirable credit home finance loan financial loans will occur with a pre-payment penalty. Chat to your loan provider about the information of the pre-payment penalty. Obtain out how extended the penalty will final and exactly how a lot revenue the penalty is. How a lot is the great for pre-payment on the mortgage? This is an vital variable to contemplate when comparing creditors.
To far better see how publish-personal bankruptcy lending will work, it is significant to take a look at your credit score profile through the eyes of possible loan providers. Financial institutions are in business of loaning revenue and lending to them is a issue of data showing opportunity revenues and losses. It is quite clear that lending institutions do want to increase their earnings and are not keen to get rid of money. That is why a personal bankruptcy on your record is a prevent aspect to many loan providers.
When urgent assist with money is essential, predicaments wherever financial support is essential immediately, which take place to persons regardless of their credit heritage, a fortunate couple know how to discover terrible credit score emergency kredyty for rapidly funds.
The scholar financial loan supports almost all the educational expenses from getting admission, obtaining a place, regular foods expenses, obtaining healthcare solutions, generating assignments, going out for excursions, stationery costs and travel fees way too. So, without having any worries and problem, a college student can construct his occupation in accordance to his decision.
The financial debt-to-money ratio has nothing to do with credit rating scores, which are only an evaluation of repayment history. As an alternative, it is confirmation to the degree to which a borrower can afford further personal debt. When evaluating an application for a lousy credit rating home finance loan financial loan, this is vastly worthwhile.
Eventually, the importance of the lender is large when applying for a house financial loan with poor kredyty. This is since the specific terms, charges and late penalties can make the house loan deal fewer cost-effective than was very first thought. In fact, the guidelines set by the loan companies often are what swings the deal, so finding the correct one particular is quite essential.
When critical payments are mounting up on you and your salaryday is just a couple months away, your important will need for dollars can be equipped by quick payday loans. Loans like this make it relatively simple to obtain cash which is essential to include significant expenses like, health care month-to-month dues, college added fees excreta. As a immediate consequence of this you can expect to avert the inconveniences that the delay in receiving rid of all these obligations will trigger. This will also eliminate the necessity for fine for late payment which in more means than one particular may perhaps increase to your monetary incapability and offer you with same day payday loans.
Virtually absolutely everyone requires to get a regular monthly payment personal loan at some place in their daily life. Getting a residence or auto can cost so a lot income that saving up for the required money takes years and decades. A month to month payment personal loan can permit someone to get what they want or have to have swiftly and fork out off the bank loan around time. In essence, a every month payment personal loan makes it possible for you to get what you want now, and then save up for it through the month to month payments. The trade off is that you pay fascination on the mortgage, so you spend a tiny extra in the close to get what you require now as an alternative of considerably later on.
__________________
Modest Company Financial Loans Similar Article Content kredyty gotówkowe
Discovering The Enjoyable In Payday Loan Lender Articles
Responder Citando
Respuesta

Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Las caritas están Activado
El codigo [IMG] está Activado
Código HTML está Desactivado
Trackbacks are Activado
Pingbacks are Activado
Refbacks are Activado
Ir al Foro

Programacion : LWPI Solorecursos I programacion I abcdatos I TrucosTecnicos I servicios gratisI ofertas de ADSL Ipueblos20
Areas exclusivas:cursosIofertasIadslIwebtutoriales ISMSareaItutorialesItrucos de windows IgooglemaniaI programatium.netIcompras
noticias: SaludIOcio/cineIMusicaIMotorIDeportes IJuegos I FinanzasIMovilesIEnergiaIEcologiaITech-yIMujerIMACISaludIViajes-Pueblos
site programatium.com : site1 - site2 - site3 - site4 - site5 - site6 - site7 - site8
manuales Sugiere un manual para esta seccion
who's online
Linkanos
www.programatium.com© 1999 - web esta optimizada para Microsoft explorer 6.0
tutoriales

Content Relevant URLs by vBSEO 3.2.0