Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create the boba tea class: a . BobaTea has the following features i . A non - static string called name ii . A non
Create the boba tea class:
a BobaTea has the following features
i A nonstatic string called name
ii A nonstatic double called price
iii. A two parameter consturctor with a string and double parameter. The constructor sets name to the string and price to the double parameter
b In the main, create BobaTea objects with the following values for nameprice:
i "Milk Tea",
ii "Thai Tea",
iii. "Earl Grey",
c Add the objects into a BobaTea array called "order"
d Display the sum of all prices of the BobaTea objects in order
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started