Declare a 12-element array of chars named letters and what


Question 1: Declare a 12-element array of chars named letters.

Question 2: What does the following program segment display?

dept = 5;

price = 100;

if(dept == 5 && price > 100)

discount = .20;

else if (price >= 100)

discount = .15;

else if(dept == 5)

discount = .10;

else

discount = .05;

cout << discount;

Solve this Program using c programming concepts.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Declare a 12-element array of chars named letters and what
Reference No:- TGS0946573

Expected delivery within 24 Hours