Question: Step 1: Get data from user Prompt the user for the following information Plan Type: C/c for Commercial, R/r for Residential, S/s for Student Talk

 Step 1: Get data from user Prompt the user for the

following information Plan Type: C/c for Commercial, R/r for Residential, S/s for

Step 1: Get data from user Prompt the user for the following information Plan Type: C/c for Commercial, R/r for Residential, S/s for Student Talk Minutes: Whole number only 2 pts Step 2: Validate Data Validate data and display an appropriate and descriptive error message. If any invalid data exists, do not display invoice Examples of invalid data Note: This list is not exhaustive Negative number for number of talk minutes. Any letter other than: C/c, R/r, or S/s for plan type 5 pts Step 3: Calculate based upon plan type Use the table above to calculate the price for each line item ts Step 4: Display Invoice Use the format above to display the invoice 5 pts Step 5: Expected ruby expression 3pts 1. Do not hard code 10080, use the following constants and calculate the maximum number of minutes per week. a. MINS PER HOUR= 60 b. HOURS PER_DAY 24 C. DAYS PER WEEK 7 2. Determining Plan Type Spts Usecase. statement or if statements. Make sure to handle both upper and lower case values For example: playType "c case planType a. b. when "e", "C" end 3. Use 'if statements where needed Step 1: Get data from user Prompt the user for the following information Plan Type: C/c for Commercial, R/r for Residential, S/s for Student Talk Minutes: Whole number only 2 pts Step 2: Validate Data Validate data and display an appropriate and descriptive error message. If any invalid data exists, do not display invoice Examples of invalid data Note: This list is not exhaustive Negative number for number of talk minutes. Any letter other than: C/c, R/r, or S/s for plan type 5 pts Step 3: Calculate based upon plan type Use the table above to calculate the price for each line item ts Step 4: Display Invoice Use the format above to display the invoice 5 pts Step 5: Expected ruby expression 3pts 1. Do not hard code 10080, use the following constants and calculate the maximum number of minutes per week. a. MINS PER HOUR= 60 b. HOURS PER_DAY 24 C. DAYS PER WEEK 7 2. Determining Plan Type Spts Usecase. statement or if statements. Make sure to handle both upper and lower case values For example: playType "c case planType a. b. when "e", "C" end 3. Use 'if statements where needed

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!