Q1: Write a function that receives marks received by a student in 3 subjects and returns the average and percentage of these marks. Call this function from main() and print the results in main().

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 9E: (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by...
icon
Related questions
Question
Q1: Write a function that receives marks received by a student in 3 subjects and
returns the average and percentage of these marks. Call this function from main()
and print the results in main().
Q2: A positive integer is entered through the keyboard, write a function to display
the Fibonacci series upto 'n’ positive integer
(1) Without using recursion
(2) Using recursion
Q3: To fully define a variable one needs to mention not only its 'type’ but also its
'other properties'. In other words, not only do all variables have a data type, they
also contain other properties. Explain the concept that will help us to describe the
properties of any variable.
Q4: Write a short note on one dimensional Arrays.
Transcribed Image Text:Q1: Write a function that receives marks received by a student in 3 subjects and returns the average and percentage of these marks. Call this function from main() and print the results in main(). Q2: A positive integer is entered through the keyboard, write a function to display the Fibonacci series upto 'n’ positive integer (1) Without using recursion (2) Using recursion Q3: To fully define a variable one needs to mention not only its 'type’ but also its 'other properties'. In other words, not only do all variables have a data type, they also contain other properties. Explain the concept that will help us to describe the properties of any variable. Q4: Write a short note on one dimensional Arrays.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning