Search

Solution Cart

Remove item Thumbnail image Product Price Quantity Subtotal
× Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound depends upon the quantity ordered according to the table shown below. Partial pounds are not sold. Shipping is $1.00 per pound, but free for coffee orders over $150 before tax. The user must enter the number of pounds desired from the keyboard. The program will then display the cost of the coffee, the 7% sales tax, shipping charges (if any) and the total amount due. All four values should be displayed in currency format with the $ sign right up against the first digit. See SAMPLE OUTPUTS below. MoonBucks Coffee Company - Coffee Prices 40 pounds or more $7.50 per lb. 20 pounds or more $8.75 per lb. 10 pounds or more $10.00 per lb. 1 to 9 pounds $12.00 per lb. Start with a comment that includes your name and course number. Include pseudocode that describes all steps required to solve the problem. Employ variable names that describe the values they store and adhere to Python naming conventions. Include additional comments as needed to annotate your code. Use correct spelling and grammar. SAMPLE OUTPUT How many pounds are you ordering? 15 Cost of coffee $150.00 7% sales tax $10.50 Shipping fee $15.00 Total payable $175.50 SAMPLE OUTPUT How many pounds are you ordering? 50 Cost of coffee $375.00 7% sales tax $26.25 Shipping fee $0.00 Total payable $401.25 Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound $3.00
$3.00
× in python please715 LAB Warm up Peoples weights Lists1 Prompt the user to enter four in python please715 LAB Warm up Peoples weights Lists1 Prompt the user to enter four $5.00
$5.00
× 5. Write a program that implements a class called MyTeam. Your class should have the following private data items: Id (int), Name (string), Slogan (string), Wins (int), and Losses (int). You need to define properties with appropriate accessor functions for each of the data items. Methods should include a default constructor that sets values to the empty string or zero, a constructor that allows the user to specify all values for the data items, a member method called DisplayTeamInfo that outputs all the information for the given toy in a reasonable format. Challenge Problem: Code your set accessors to restrict all numeric fields (Id, Wins, Losses) to positive numbers. You can determine how you want to report/respond to the error. (25 pts) The code below is my suggestion for your Main() method for Program 22 static void Main(string[] args) { MyTeam myHitchhikers = new MyTeam(); myHitchhikers.Id = 42; myHitchhikers.Name = "Ford Prefect et. al."; myHitchhikers.Slogan = "Don't panic!"; myHitchhikers.Wins = 525; myHitchhikers.Losses = 42; Console.WriteLine("nTeam 1 Information"); myHitchhikers.DisplayTeamInfo(); MyTeam mykitties = new MyTeam(); Console.WriteLine("nTeall 2 Information"); mykitties.DisplayTeamInfo(); MyTeam myPatriots = new MyTeam(2023, "UC Patriots", "One Big Team", 42, 3); Console.WriteLine("nTeam 3 Information"); myPatriots.DisplayTeamInfo(); //This will test your Challenge Problem Settings if you attempted them Console.WriteLine("nTeam 4 Information"); MyTeam mywinners = new MyTeam(13, "Winners", "We like to win more than you do", -20, -35); } myllinners.DisplayTeamInfo(); 5. Write a program that implements a class called MyTeam. Your class should have the following… $10.00
$10.00

Cart totals

Subtotal $18.00
Total $18.00

Free Worldwide shipping

On all orders above $50

Easy 30 days returns

30 days money back guarantee

International Warranty

Offered in the country of usage

100% Secure Checkout

PayPal / MasterCard / Visa