Question 15 What will be the value of discountRate after the following statements are executed? double discountRato - 0.
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Question 15 What will be the value of discountRate after the following statements are executed? double discountRato - 0.
Question 15 What will be the value of discountRate after the following statements are executed? double discountRato - 0.0; int purchase - 1250; char custN; if (purchase > 1000) if (cust - 'Y') discountRate - 0.05; else discountRate - 0.04; else if (purchase > 750) if (oust -- 'Y') discountRate - 0.04; olsa discountRate - 0.03; else discountRate - 0.0; 0 0.04 00.0 0 0.05
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!