Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

C++ Beginner Quiz Programming Fundamentals (CC1021)

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
21-08-2021
Written in
2020/2021

My document includes Beginner Quizzes for Computer Language C++ and also a Solution File

Institution
Course

Content preview

Programming Fundamentals
Assignment 4
Due Date: 25 Feb 2021.
Total marks 60
Note: Do not copy code from internet or any other source even across the sections. I will check the
plagiarism of the assignment and it will capture the cheated code from internet or copied from class fellows.
Those who will try they will get some marks for their effort even you do not get perfect solution. Copied
& Shared work will score in negative grading. Assignment should be in visual Studio. You will copy all
the code to word file and send it on LMS. Word file should be renamed with your roll number. After
submission, no excuse will be entertained. No assignment will be accepted after due date.




Q1. 0, 1, 1, 2, 3, 5, 8, 13… are the Fibonacci numbers series as we learnt in the class. Write a
C++program that takes/declares an array with the name fibnum[80] with 80 size and start
filling it with the first 80 Fibonacci series. Now declare another fibar[80] which will copy
those elements from fibnum[] which are multiple of 5 and count of the total numbers which
are multiple of 5. Display first array completely and display fibar[] according to the size of
the count only. 5
Clue: First, enter two numbers 0 and 1 manually in the array and then calculate the remaining
numbers using the loop.
Q2.Write a C program that that takes as input two integers arrays hours worked and pay rate of 5
employees and display each employee gross salary
(Hint: Gross pay= hours*pay rate)
Sample Input for 1 employee:
Hours worked by employee 1: 10
Hourly pay rate for employee 1:1000
Employee 1 gross salary:10000 use 3rd array for gross Salary 5
Q3.Write a program in C++ to separate odd and even integers in separate arrays. 5
Q4.Write a C++ Program to copy an array element into another array in reverse order 5
e.g a[1,2,3,4,5] the b should be b[5,4,3,2,1]



Q5. Determine the Low and High grades of Students.
#include <iostream>

Written for

Institution
Course

Document information

Uploaded on
August 21, 2021
Number of pages
4
Written in
2020/2021
Type
Exam (elaborations)
Contains
Answers

Subjects

$3.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
ahmadcrisp

Also available in package deal

Get to know the seller

Seller avatar
ahmadcrisp University of Management and Technology
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions