Repeat the problem luhn algorithm shown in figure 1197 now


Write a class called collatz for the Collatz conjecture described in Fig 1.31.

 

55_1.png

Problem 1.19.8. Repeat the problem luhn algorithm shown in figure 1.19.7. Now, you cannot use any array in your file luhn.cpp. Create a new directory called luhn1. Copy luhn.h, luhn.cpp and luhntest.cpp from the directory luhn. You cannot change anything in luhntest.cpp. luhn.h must have check routine and any other helper functions, as private routines, to implement check routine. Rewrite check routine in luhn.cpp without using any array. That means you need to compute validaty of the credit card without using temporary array. email only luhn.cpp. Also include screen shot of the program output as a pdf file.

Problem 1.19.9. Repeat the problem collatz conjecture, 1.19.4, in a new directory collatz1. Now your collatz procedure should compute the collatz sequence and store the results in an array. Write another procedure that takes the computed array and prints the collatz sequence. Test your program for numbers from zero to hundred. email collatz.h, collatz.cpp and collatztest.cpp. Also include screen shot of the program output as a pdf file. 

Write a class called funnychar that outputs the following figure: 

1879_1.png


• Use only for statements. You can use only one
• Use only while statements
• Use only do while statements

• Use only if statement and cannot have any loop statements like for, while and do while. Hint: Use goto statement.

 What is the output of the program below. Can you prove why your answer is correct?

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Repeat the problem luhn algorithm shown in figure 1197 now
Reference No:- TGS01509653

Expected delivery within 24 Hours