- 10.1.1.76
- Cimplicity Catalog Gfa795
- UNIVERSITAS PELITA HARAPAN
- MySQL 内存分析
- Group Exchange Setup
- Eye Detection
- CSE-2105 Lesson Plan
- IBPS IT Officer Model Paper and Solutions
- assAs
- Resume
- Bilal Haider Cv
- Head Office and Branch Concept Demostrated for Both Vendors Customers
- Cordic Architecture Survey
- Job Sequencing With Deadlines
- Apprentissage par renforcement utilisant des réseaux de neurones, avec des applications au contrôle moteur
- Chapter 2
- ahp
- Roy Models
- How to Deploy and Run SAPUI5 application on ABAP Server.docx
- Flow Sheeting
- How to Deploy and Run SAPUI5 Application on ABAP Server
- 01707402.pdf
- Particle Swarm Optimization
- linprogexample.pdf
- Crf Klinger Tomanek
- nikesh
- CvEnglish Short
- NonLinFit-Solver.xls
- 612_e1_2014_wsol (1)
- speech recognition project
- 131-academic-calendar-2013-2014-1303200745
- Essay Plan
- Numerical Analysis Kendall Atkinson 2nd Ed
- Kw5 Ideologi Ps
- kwn uas1234212
- High Idiosyncratic Volatility and Low Returns
- 481Lecture10.pdf
- Block Matrix Inverse
- kw5_ideologi-ps [Compatibility Mode].pdf
- Soal Limit Tingkat Lanjut
- invers matriks
- PD Non Homogen
- Simak Ui Fisika Kode 512 nomor 27
- Limit
- integration problem
- Integral Tak Tentu
- John E. Freund's Mathematical Statistics With Applications 7th Ed
- Limit

**Conditional & Iterative Structures
**

1. Write a program that takes an odd number as input. Your program has to make sure that the input is really an odd number, otherwise user should be asked to input a number again until an odd number is inputted.

Input an odd number : 8 It is not an odd number! Input an odd number : 7 * *** ***** ******* ***** *** *

2. Write a program that takes an even number, greater than 2 as input. Your program has to make sure that the input is really greater than 2 and an even number, otherwise user should be asked to input a number again until the required number is inputted.

Input an odd number greater than 2 : 2 It is not a valid input! Input an odd number greater than 2 : 10 ********** **** **** *** *** ** ** * * ** ** *** *** **** **** **********

3. Fibonacci is a sequence that has a rule : nk+2 = nk+1 + nk , k>=0 , n0=0 , n1=1. Hence, Fibonacci sequence is like this : 0, 1, 1, 2, 3, 5, 8, 13, 20, … This means that the 3rd number in Fibonacci sequence is 3, the 7th is 13, etc. Write a program that takes a number n as input, and generate the n-th number of Fibonacci sequence. Following is the example of the output.

Input a number : 8 The 8-th number of Fibonacci sequence is 20.

4. BONUS QUESTION. This question is worth a perfect score 100, which means if you can solve this, you don’t need to solve questions in number 1, 2, and 3. It is true that one of our rules in the beginning of the class is that we are to respect ourselves, which means saying “I can’t solve this question” isn’t tolerable in this class, but I don’t think it’s wise either to force yourselves in solving this question if you’re not capable YET. So be wise, it’s your call. Friday the Thirteenth Is Friday the 13th really an unusual event? That is, does the 13th of the month land on a Friday less often than on any other day of the week? To answer this question, write a program that will compute the frequency that the 13th of each month lands on Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday over a given period of N years. The time period to test will be from January 1, 1900 to December 31, 1900+N-1 for a give number of years, N. N is positive and will not exceed 400 (Note that the start year is nineteen hundred, not 1990). There are a few facts you need to know before you can solve this problem : - January 1, 1990 was on a Monday. - Thirty days has September, April, June, and November, all the rest have 31 except for February which has 28 except in leap years when it has 29. - Every year evenly divisible by 4 is a leap year (1992 = 4*498 so 1992 is a leap year, but 1990 is not). - The rule above does not hold for century years. Century years divisible by 400 are leap years, all other are not. Thus, the century years 1700, 1900, 1900, and 2100 are not leap years, but 2000 is a leap year. Do not use any built-in date functions in C++. Don’t just precompute the answers either. The output should contain seven space separated integers on one line. These integers represent the number of times the 13th falls on Saturday, Sunday, Monday, Tuesday, …, Friday. Following is the example of how your program should look like.

Input a number : 20 36 33 34 33 35 35 34

- 10.1.1.76Uploaded bySofia Aguirre
- Cimplicity Catalog Gfa795Uploaded byTarek Khafaga
- UNIVERSITAS PELITA HARAPANUploaded byPutut Hernanto
- MySQL 内存分析Uploaded byHoneyMoose
- Group Exchange SetupUploaded bycesar palomo
- Eye DetectionUploaded byNguyen Phuoc Loc
- CSE-2105 Lesson PlanUploaded byS M Shamim শামীম
- IBPS IT Officer Model Paper and SolutionsUploaded byMANISH KUMAR
- assAsUploaded byMukesh Bisht
- ResumeUploaded byAdin
- Bilal Haider CvUploaded byBilalHaider23
- Head Office and Branch Concept Demostrated for Both Vendors CustomersUploaded byAvinash Malladhi
- Cordic Architecture SurveyUploaded byDivya Dhanalakshmi
- Job Sequencing With DeadlinesUploaded bysramsubbu
- Apprentissage par renforcement utilisant des réseaux de neurones, avec des applications au contrôle moteurUploaded bymarabane
- Chapter 2Uploaded byFickri Hafriz
- ahpUploaded bytecharup
- Roy ModelsUploaded bysami_bazzi3303
- How to Deploy and Run SAPUI5 application on ABAP Server.docxUploaded byBalbino Soares
- Flow SheetingUploaded byFalom Bander
- How to Deploy and Run SAPUI5 Application on ABAP ServerUploaded byBalbino Soares
- 01707402.pdfUploaded byBasil
- Particle Swarm OptimizationUploaded byTriyan Indra
- linprogexample.pdfUploaded byChris Lim
- Crf Klinger TomanekUploaded byjamesbor
- nikeshUploaded bydev22385
- CvEnglish ShortUploaded byAurélien Decelle
- NonLinFit-Solver.xlsUploaded byjose miranda
- 612_e1_2014_wsol (1)Uploaded byKushal Bn
- speech recognition projectUploaded byAnand Prajapati

- 131-academic-calendar-2013-2014-1303200745Uploaded byKenny Wiratama
- Essay PlanUploaded byKenny Wiratama
- Numerical Analysis Kendall Atkinson 2nd EdUploaded byKenny Wiratama
- Kw5 Ideologi PsUploaded byKenny Wiratama
- kwn uas1234212Uploaded byKenny Wiratama
- High Idiosyncratic Volatility and Low ReturnsUploaded byKenny Wiratama
- 481Lecture10.pdfUploaded byKenny Wiratama
- Block Matrix InverseUploaded byKenny Wiratama
- kw5_ideologi-ps [Compatibility Mode].pdfUploaded byKenny Wiratama
- Soal Limit Tingkat LanjutUploaded byKenny Wiratama
- invers matriksUploaded byKenny Wiratama
- PD Non HomogenUploaded byKenny Wiratama
- Simak Ui Fisika Kode 512 nomor 27Uploaded byKenny Wiratama
- LimitUploaded byKenny Wiratama
- integration problemUploaded byKenny Wiratama
- Integral Tak TentuUploaded byKenny Wiratama
- John E. Freund's Mathematical Statistics With Applications 7th EdUploaded byKenny Wiratama
- LimitUploaded byKenny Wiratama