Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a) Define the following C++ terms/phrases i. Scope of a variable ii Arrays ii Parameter iv. Scope resolution operator [8 marks] b) List and explain
a) Define the following C++ terms/phrases i. Scope of a variable ii Arrays ii Parameter iv. Scope resolution operator [8 marks] b) List and explain any two ways to pass arguments to parameters in a function 4 marks] c) What is the value of x after the following statement? Show your working. 3 marks] float x x-30/403+2/5; d) Write a C+ program that reads in 5 scores and shows how much each score differs from the highest score. Use arrays and loops in your program. [10 marks] 25 Marks]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started