--Originally published at Victor´s Spot
This task was kind of large, but I finally did it with the help of Juan Carlos Ron Varela and Rogelio Felix Gamboa.
The job consisted on
“Create a program that asks the user for two pieces of data: The lower bound of the sequence & The upper bound of the sequence. Then you check the values from the lower bound (inclusive) to the upper bound (inclusive) and make a report of them. During the analysis of each number, if a Lychrel number is found it should be reported immediately with something like “Found a Lychrel number: 196” (Bauer, 2017).
I believe I develope on this WSQ the following mastery topics from Kenscourses.com:
- Nesting of conditional statements (ifs inside ifs)
- Nested loops
I belived that i developed those because the code requires a combination of loops and conditional because it requires of that to make it worth.
--Originally published at Ariatne's Blog
--Originally published at RON
Finalmente termine esta práctica, que en mi opinion fue la mas retadora de todas, aunque realmente con una visita en la oficina de mi profesor Ken supe que es lo que tenia que hacer y a partir de ahí todo fue prueba y error, también gracias a la ayuda de mis compañeros que me explicaron las funciones nuevas que teníamos que usar fue que logre completar este WSQ con éxito. Abajo incluyo mi enlace del archivo .cpp.
Temas de dominio:
Cuando usar qué tipo de repetición en un programa
Haga click para ver el pase de diapositivas.
Enlace código .cpp:
--Originally published at Regular Blog
Fueron semanas difíciles, es curioso y formidable que este sea el programa más largo de todo el semestre en la clase de Soluciones de Problemas con Programación, pues ha sido el más tardado de todos los WSQs…
Para este assignment lo que debe hacer el programa es recibir un parámetro de números que le pide al usuario, y decir cuántos palindromes (números que son lo mismo de derecha a izquierda que de izquierda a derecha), Lycherel numbers (natural numbers that do not form a palindrome after successive additions to their inverse) y non-Lycherel nombers…
Para esto utilizamos BigInteger, una lubrería que permite procesar números grandes con sus propios métodos.
--Originally published at Elisa
--Originally published at Solving problems with programming
Well actually i don´t have this WSQ because i´m still working on it, at the begin of this partial i´ve seen this assignment with a lot of preocupation but with more practice that preocupation dissapear.
As soon i have this WSQ working, i will upload it.
Thanks to take your time for read it.
Picture from http://www.relatably.com/m/funny-memes-about-work
--Originally published at My TC1017 programming class
First of all, I should say that one is one heck of a programm. Basically, what the program is supposed to do, is for the user to input a set of numbers. Then, from those numbers, you will get how many palindromes, how many non-Lycherels, and how many Lycherel numbers you have.
There are different ways of doing so. In my case (as you will see), I used some boolean operators in order to find what they were.
In addition, in order to run the program properly, you will need a library to use BigIntegers, which allow for the use of HUGE numbers. There is a Tutorial made by Mr. Ken on how to do it. I will also be includeing the link.
Lastly, it will be important for you to install (On the Windows 10 Linux Shell) the program MAKE. The cpp file will have the instructions for it.
Google Drive File
--Originally published at Valeria CT
I finally made it!
I was working all weekend and some time also during the week on my WSQ08, and I saw that what everyone was saying was true: it was really challenging. What I did is, I worked on pieces of the assignment separately: I did the palindrome check on one program, the inverse iteration on another and the lycherel check on another, then finally I was working on the input of the range.
I believe this was the hardest for me, because I was able to catch negative integers and whether the upper value was smaller than the lower, but when I tried to catch if the user wrote letters or symbols I got into an infinite loop. I worked and did research on this for about two hours until I remembered an assignment from Cham’s class that I helped her student complete where they checked a string to see if it was alphanumerical, digits, etc. So I did this and then I only had to put together all of my codes.
Here’s the link to my GitHub folder that contains the files on this WSQ. The final one (that works) is called lycherel.cpp
There were a lot of resources that I used, here’s a list of them: