Help me see what I am doing wrong

I am new to Computer Programming and due to Co-Vid I am taking my class online and have never been more confused. I watch the videos the teacher attaches and read her notes but I feel stumped. I found out today that my advisor didn’t know what they were doing when they advised me to take CIST1305 as one of my first classes. But here I am.

7a.
Cake

cakeFlavor : string
cakeIcingFlavor : string
diameter : num
price : num

setCakeFlavor (c : string) : void
setIcingFlavor (i : string) : void
setDiameter (d : num) : void
setPrice (p : num) : void

Start
Declarations
string cakeFlavor
string icingFlavor
num diameter
num price

	public void setCakeFlavor (string c)
		cakeFlavor = c.getCakeFlavor()
	
	public void setIcingFlavor (string i)
		icingFlavor = i.getIcingFlavor()
	
	public void setDiameter (string d)
		Diameter = d.getDiameter()
	
	public void setPrice (string p)
		price = p.getPrice()

		output cakeFlavor
		output icingFlavor
		output diameter
		output price
endclass

7b.
classCake
Declarations
string cakeFlavor
string cakeIcingFlavor
num diameter
num price

	public void setCakeFlavor (string c)
		cakeFlavor = c.getCakeFlavor()
	
	public void setIcingFlavor (string i)
		icingFlavor = i.getIcingFlavor()
	
	public void setDiameter (string d)
		Diameter = d.getDiameter()
	
	public void setPrice (string p)
		price = p.getPrice()

		output cakeFlavor
		output icingFlavor
		output diameter
		output price
endclass

Values…
Start
Declarations
Object Cake1
Object Cake2
Cake1.setCakeFlavor (“vanilla”)
Cake2.setCakeFlavor (“chocolate”)
Cake1.setIcingFlavor (“vanilla”)
Cake2.setIcingFlavor (“chocolate”)
Cake1.setDiameter (6)
Cake2.setDiameter (12)
Cake1.setPrice (“50.00”)
Cake2.setPrice (“75.00)
Stop

Hey there,

I totally get you.
Starting computer programming can make you feel overwhelmed and confused.

You pasted a lot of code.
How can we help you?
Do you have a specific question?