(Solved) : Someone Please Help Creating Application Visual Basic Next Steps Create Windows Form Appli Q42755319 . . .

Can someone please help me creating an application for VisualBasic that has the next steps. Create a Windows Form applicationcalled Coffee Machine project that prepares a cup of coffee basedon the resources such as water and ground coffee. Declare globalconst variable as integer intCAPACITY with a value of 10. ImplementCoffeeMachine class including all the class members: public:strName: the name of the type of coffee makeCups(int): coffeemachine makes the number of cups of coffee. It invokesmakeSingleCup() function to make single cup of coffee For example,you order 3 cups of coffee using the makeCups(3) function: – If notenough resources to the prepare the coffee order, then the order isrejected, and display the following message. NOT ENOUGHRESOURCES!!! – If enough resources, the output the followingmessage. Ordered 3 cups of coffee (Decaf) of strength 1 executesmakeSingleCup() function multiple times to prepare ordered. Thestrength is the number of coffee scoops. addWater(int): add numbercups of water to container, but not beyond full capacityaddCoffee(int): add number scoops of coffee to container, but notbeyond full capacity setCoffeeScoop(int): set number of scoop percup to a new value displayCM(): prints the following output Currentstate of CM: Decaf Water: 10 / 10 (cups) Coffee: 10 / 10 (scoop)Strength: 1 scoop of coffee private: intCurrWater intCurrCoffeeintWaterCapacity intCoffeeCapacity intCoffeeSpoonsPerCupmakeSingleCup(): produces a single cup of coffee intwaterCapacity() the capacity of water container intcoffeeCapacity() the capacity of coffee container int currWater()current amount of water in the container int currCoffee() currentamount of coffee in the container protected: int coffeeScoop(): thename of the type of coffee Declare the following constructors:default constructor, no parameters. Initializes intCurrWater andintCurrCoffee to 0, intWaterCapacity and intCoffeeCapacity tointCAPACITY, intCoffeeScoop to 1. strName is set to “non Decaf”.Outputs the message: Created Coffee Machine non Decaf with emptyresources. constructor that just initializes the name of the coffeemachine and rest of the values same way as in default constructor.Outputs the message: Starting up Coffee Machine Decaf with emptyresources. constructor that initializes the CoffeeMachine objectsetting the following parameters: strName, intWaterCapacity andintCoffeeCapacity – set to values given as parameters to theconstructor. Values of intCurrWater and intCurrCoffee are set to 0.Value of intCoffeeScoop is set to 1. Outputs the message: Startingup Coffee Machine Decaf with empty resources and capacities_water_capacity=X coffee_capacity=Y Input Declare object cm1 ofCoffeeMachine type using no parameter constructor Fill water to 8cups and add 8 scoops of coffee using appropriate member functionsOrder 5 cups of coffee Display state of machine Declare object cm2of CoffeeMachine type using constructor with single parameter. Use”Decaf” as the name. Fill water and coffee resources to maximumDisplay machine state Order 14 cups of coffee Declare object cm3 ofCoffeeMachine type using constructor with multiple parameter. Use”Blend” as the name, water capacity = 15, and coffee capacity = 20.Fill water to 14 and coffee to 20 Display machine state Order 12cups of coffee Display machine state Order 5 cups of coffee Resultscreated coffee machine non Decaf with empty resources Current stateof CM: non Decaf Water: 8/10 (cups) Coffee: 8/10 (scoops) Strength:1 coffee scoops per cup ordered 5 cups of coffee of strength 1…made cup of coffee non Decaf… …made cup of coffee nonDecaf… …made cup of coffee non Decaf… …made cup of coffeenon Decaf… …made cup of coffee non Decaf… Current state ofCM: non Decaf Water: 3/10 (cups) Coffee: 3/10 (scoops) Strength: 1coffee scoops per cup created coffee machine Decaf with emptyresources Current state of CM: Decaf Water: 10/10 (cups) Coffee:10/10 (scoops) Strength: 1 coffee scoops per cup ordered 14 cups ofcoffee of strength 1 NOT ENOUGH RESOURCES! Starting up CoffeeMachine Blend with empty resources and capacities: water capacity=15 and coffee capacity = 10 Current state of CM: Blend Water:14/15 (cups) Coffee: 20/20 (scoops) Strength: 1 coffee scoops percup ordered 12 cups of coffee of strength 1 …made cup of coffeeBlend… …made cup of coffee Blend… …made cup of coffeeBlend… …made cup of coffee Blend… …made cup of coffeeBlend… …made cup of coffee Blend… …made cup of coffeeBlend… …made cup of coffee Blend… …made cup of coffeeBlend… …made cup of coffee Blend… …made cup of coffeeBlend… …made cup of coffee Blend… Current state of CM: BlendWater: 2/15 (cups) Coffee: 8/20 (scoops) Strength: 1 coffee scoopsper cup ordered 5 cups of coffee of strength 1 NOT ENOUGHRESOURCES!

Create a Windows Form application called Coffee Machineproject that prepares a cup of coffee based on the resources suchas water and ground coffee.visual Basic – Class Statement
Declare global const variable as integer intCAPACITY with avalue of 10.
Implement CoffeeMachine class including all the classmembers:public:strName: the name of the type of coffeemakeCups(int): coffee machine makes the number of cups ofcoffee. It invokes makeSingleCup() function to make single cup ofcoffee   
For example, you order 3 cups of coffee using the makeCups(3)function:- If not enough resources to the prepare the coffee order,then the order is rejected, and display the followingmessage.NOT ENOUGH RESOURCES!!!- If enough resources, the output the following message.Ordered 3 cups of coffee (Decaf) of strength 1executes makeSingleCup() function multiple times to prepareordered. The strength is the number of coffee scoops.
addWater(int): add number cups of water to container, but notbeyond full capacityaddCoffee(int): add number scoops of coffee to container, butnot beyond full capacitysetCoffeeScoop(int): set number of scoop per cup to a newvaluedisplayCM(): prints the following outputCurrent state of CM: DecafWater: 10 / 10 (cups)Coffee: 10 / 10 (scoop)Strength: 1 scoop of coffee
private:intCurrWaterintCurrCoffeeintWaterCapacityintCoffeeCapacityintCoffeeSpoonsPerCupmakeSingleCup(): produces a single cup of coffeeint waterCapacity() the capacity of water containerint coffeeCapacity() the capacity of coffee containerint currWater() current amount of water in the containerint currCoffee() current amount of coffee in thecontainer
protected:int coffeeScoop(): the name of the type of coffee

Declare the following constructors:default constructor, no parameters. Initializes intCurrWaterand intCurrCoffee to 0,intWaterCapacity and intCoffeeCapacity to intCAPACITY,intCoffeeScoop to 1. strName is set to “non Decaf”. Outputs themessage:Created Coffee Machine non Decaf with empty resources.

constructor that just initializes the name of the coffeemachine and rest of the values sameway as in default constructor. Outputs the message:Starting up Coffee Machine Decaf with empty resources.

constructor that initializes the CoffeeMachine object settingthe following parameters:strName, intWaterCapacity and intCoffeeCapacity – set tovalues given as parameters to theconstructor. Values of intCurrWater and intCurrCoffee are setto 0. Value of intCoffeeScoop is set to 1. Outputs themessage:Starting up Coffee Machine Decaf with empty resources andcapacities_water_capacity=Xcoffee_capacity=Y
Input
Declare object cm1 of CoffeeMachine type using no parameterconstructorFill water to 8 cups and add 8 scoops of coffee usingappropriate member functionsOrder 5 cups of coffeeDisplay state of machineDeclare object cm2 of CoffeeMachine type using constructorwith single parameter. Use “Decaf” as the name.Fill water and coffee resources to maximumDisplay machine stateOrder 14 cups of coffeeDeclare object cm3 of CoffeeMachine type using constructorwith multiple parameter. Use “Blend” as the name, water capacity =15, and coffee capacity = 20.Fill water to 14 and coffee to 20Display machine stateOrder 12 cups of coffeeDisplay machine stateOrder 5 cups of coffee
Results
created coffee machine non Decaf with empty resourcesCurrent state of CM: non DecafWater: 8/10 (cups)Coffee: 8/10 (scoops)Strength: 1 coffee scoops per cupordered 5 cups of coffee of strength 1…made cup of coffee non Decaf……made cup of coffee non Decaf……made cup of coffee non Decaf……made cup of coffee non Decaf……made cup of coffee non Decaf…Current state of CM: non DecafWater: 3/10 (cups)Coffee: 3/10 (scoops)Strength: 1 coffee scoops per cupcreated coffee machine Decaf with empty resourcesCurrent state of CM: DecafWater: 10/10 (cups)Coffee: 10/10 (scoops)Strength: 1 coffee scoops per cupordered 14 cups of coffee of strength 1NOT ENOUGH RESOURCES!Starting up Coffee Machine Blend with empty resources andcapacities:water capacity =15 and coffee capacity = 10Current state of CM: BlendWater: 14/15 (cups)Coffee: 20/20 (scoops)Strength: 1 coffee scoops per cupordered 12 cups of coffee of strength 1…made cup of coffee Blend……made cup of coffee Blend……made cup of coffee Blend……made cup of coffee Blend……made cup of coffee Blend……made cup of coffee Blend……made cup of coffee Blend……made cup of coffee Blend……made cup of coffee Blend……made cup of coffee Blend……made cup of coffee Blend……made cup of coffee Blend…Current state of CM: BlendWater: 2/15 (cups)Coffee: 8/20 (scoops)Strength: 1 coffee scoops per cupordered 5 cups of coffee of strength 1NOT ENOUGH RESOURCES!

Expert Answer


Answer to Can someone please help me creating an application for Visual Basic that has the next steps. Create a Windows Form appli…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us