Question: Consider the following code segment: bool result = x = z; if (result) cout y) ? 25 - 3* (6 + 9 ) / 2

 Consider the following code segment: bool result = x = z;

if (result) cout y) ? 25 - 3* (6 + 9 )

/ 2 : (9 + 2) + 1 + 8 / (11

4) ) 5 ) if ( y > 5) cout > index;

10 } while(index 4); 11 12 cout b) && (c = -a)

|| ( b a) (1 mark) TNT Write a program that lets

the user to enter five scores value into an array. The program

shoul display: The smallest score in the array The difference between each

score with the smallest score in the array (10 Marks) (CLO3:PLO2:03) Write

a program to ask user to enter 10 values into an array,

and to identify the odd and even numbers. (10 Marks) (CLO3:PLO2:C3) Write

a program that asks user to enter an item's wholesale cost and

its mark-up percentage. It should then display the item's retails price. The

program should implement function in the code. Demonstrate a loop for calculation

of retail price. Formula: wholesaleCost + (percentage/100 * wholesaleCost) Sample of output:

Consider the following code segment: bool result = x = z; if (result) cout y) ? 25 - 3* (6 + 9 ) / 2 : (9 + 2) + 1 + 8 / (11 4) ) 5 ) if ( y > 5) cout > index; 10 } while(index 4); 11 12 cout b) && (c = -a) || ( b a) (1 mark) TNT Write a program that lets the user to enter five scores value into an array. The program shoul display: The smallest score in the array The difference between each score with the smallest score in the array (10 Marks) (CLO3:PLO2:03) Write a program to ask user to enter 10 values into an array, and to identify the odd and even numbers. (10 Marks) (CLO3:PLO2:C3) Write a program that asks user to enter an item's wholesale cost and its mark-up percentage. It should then display the item's retails price. The program should implement function in the code. Demonstrate a loop for calculation of retail price. Formula: wholesaleCost + (percentage/100 * wholesaleCost) Sample of output: Enter item wholesale cost: 10 Enter markup percentage: 75 Retail price: 17.50 Calculate again? (Enter Y or N): Y Enter item wholesale cost: 10 Enter markup percentage: 50 Retail price: 15.00 Calculate again? (Enter y or N): N Total marked up price is RM12.50 Thank You (20 Marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!