Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Week 1 program

159 views

Published on

COP 2000 Week 1 assignemnt

  • Be the first to comment

  • Be the first to like this

Week 1 program

  1. 1. Justin TrimmerConcepts of ProgrammingCOP 2000-5Declare MealPrice as Float;Declare Tip as Float;Write "Enter the cost of the meal you would like to calculate a tip for: ";Input MealPrice;Set Tip=0.15*MealPrice;Write "For your meal costing " + MealPrice + " your will need to tip $" + Tip + " at a15% tip rate.";Option TwoDeclare MealPrice as Float;Declare Tip as Float;Declre TipRate as Float;Write "Enter the cost of the meal you would like to calculate a tip for: ";Input MealPrice;Write "Enter the rate you would like to tip (betweeen 15 and 30): ";Inpute TipRateSet TipRate=TipRate*0.01;Set Tip=TipRate*MealPrice;Set TipRate=TipRate*100;Write "For your meal costing " + MealPrice + " your will need to tip $" + Tip + " at a "+ TipRate + "% tip rate.";

×