The assignment for second-year software engineering students includes five programming tasks in C++. Students are required to generate a Fibonacci sequence using recursion, calculate the sum of odd numbers using an array, display grades based on entered marks, determine voting eligibility based on age, and check if a string is a palindrome. The submission date is set for April 16, 2017, and students must include their information on the cover page and references at the end.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
7 views2 pages
Assignment One For 2nd Year Seng Students.
The assignment for second-year software engineering students includes five programming tasks in C++. Students are required to generate a Fibonacci sequence using recursion, calculate the sum of odd numbers using an array, display grades based on entered marks, determine voting eligibility based on age, and check if a string is a palindrome. The submission date is set for April 16, 2017, and students must include their information on the cover page and references at the end.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Course: Fundamentals of Programming II
Student: Second year software engineering students
Assignment: first assignment
Submission date: 16/4/2017 E.C
1. Write C++ program that generate the Fibonacci sequence of the entered number using by recursion function. 2. Write a C++ program to calculate the sum of all odd numbers between 1 and 100 using an array. 3. Write a program which will ask the user to enter his/her marks (out of 100). Define a function that will display grades according to the marks entered as below: Marks Grade 91-100 ------------------------------------A+ 85-90---------------------------------------A 80-84--------------------------------------A 75-79--------------------------------------B+ 70-74---------------------------------------B 65-79--------------------------------------B 60-64---------------------------------------C+ 55-59 --------------------------------------C 50-54---------------------------------------C- 45-49---------------------------------------D <=40 -------------------------------------- Fail 4. A person is eligible to vote if his/her age is greater than or equal to 18. Define a function to find out if he/she is eligible to vote. 5. Write a C++ program to determine if a given string is a palindrome by using a function.
Note: o Don’t forget to write your information on cover page. o Don’t forget to write references at end of the assignment.
Course Title: Computer Fundamentals and C Programming Course Level: PG Credit Units:05 Course Type: CSIT634 Course Objectives LTP/ S SW/ FW Total Credi T Units