Stag Ioput Paricessiog Output
e
The program prompts for the user to enter “1” go to credit card input functon. Help will pop up.
“1” if user wants to contnue using credit “2” prompt help.
card checker or “2” if needs help
1 The program prompts for the user to enter Programs checks if credit card is 15- If credit card range is between 15-
input 15-16 digits’ credit card number 16 numbers long. 16 it will go to the next step.
Otherwise it will prompt that
number is too small/too big and
break the program.
2 N/A Credit card number is converted N/A
into array.
3 N/A Array is reversed N/A
4 N/A First numbers are checked for the N/A
card type.
5 N/A Multplies every even number by 2 N/A
followed by subtractngg from every
number which is 10 or more.
6 N/A Sums odd Sums Even N/A
7 N/A Adds odd and even into one value. N/A
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller manis. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.70. You're not tied to anything after your purchase.