Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since:
Apr 2017
Last Sign in:
438 Weeks Ago, 5 Days Ago
Questions Answered:
9562
Tutorials Posted:
9559
Education
bachelor in business administration
Polytechnic State University Sanluis Jan-2006 - Nov-2010
CPA
Polytechnic State University Jan-2012 - Nov-2016
Experience
Professor
Harvard Square Academy (HS2) Mar-2012 - Present
Category > Business & FinancePosted 29 Jul 2017My Price5.00
Create a class named IceCreamCone with fields for flavor, number of scoops
Create a class named IceCreamCone with fields for flavor, number of scoops, type of cone, and price. Unless arguments are supplied, flavor defaults to “Vanilla”, number of scoops defaults to 1, and cone type defaults to “Sugar”. The constructor calculates the price based on 75 cents per scoop, with an additional 40 cents for a waffle cone. Write a main()function demonstrating that the class works correctly. Save the file as IceCreamCone.cpp.