Differences of Descartes and Locke with Locke's casual theory of perception

Philosophy
Part I:
List at least four differences between Descartes and Locke on how we obtain
knowledge.
For Descartes, (1) knowledge relies completely on utter certainty. Because
perception is undependable, (2) knowledge cannot come from our five senses.
Descartes believes knowledge can come from experience and deduction. But for
this philosopher, (3) he does not believe we gain knowledge from the outside
world. Therefore it must come from within. In light to how we view things,
Descartes believes that deduction ``can never be performed wrongly by an intellect
which is in the least degree rational'', so deductive knowledge is (the only) certain
knowledge. Such a system requires a basis of intuitively understood principles
from which knowledge can be deduced. (4) He believes that there are some
principles which are automatically known, just like the idea of the existence of
ourselves and that of God's existence, these are principles which are ``revealed to
[us] by natural light'' and ``cannot in any way be open to doubt''. In the end
Descartes sees these principles as innate.

On the opposite end, John Locke believes something completely different. (1)
For starters, he does not believe that knowledge is certain, but that it is just is
highly probable. He goes on to say that (2) knowledge comes from our fives
sensations or our five senses. Those five senses come from the outside world.
Locke disagrees with Descartes when he says that (3) knowledge comes from the
outside world. (4) The biggest difference of belief of know we obtain knowledge is
that Locke believes that we cannot have innate knowledge. Locke says that
because everyone has different views of God?s existence, how is it that we were all
born with some knowledge of God? These are some of the ways the two
philosophers disagree on how we obtain our knowledge.
Part II:
Explain how Locke?s casual theory of perception works

As stated above, Locke believes that we obtain knowledge through our five
senses (the external world). Now I will show you how that theory works. He
defines ideas as immediate results of thoughts or perception. Ideas are produced
through virtue of object?s qualities. Those qualities are broken up into three types
of qualities. The first type is our primary qualities. Those are primary because they
are inherent. We are able to understand bulk, figure, number, and motion. Then
comes in our secondary qualities. They give us the ability of understanding
appearance such as color, texture, flavor, and shape. Our third type is the last piece
of the puzzle. It gives us feelings we have never felt before such as pleasure &pain.
When we feel something hot for the first time and it burns us, it teaches us to not
do that again. That is an example of perception with our third type of quality. All
of these combined give us the ability to perceive our world and show us how we
obtain knowledge, better known as ?Locke?s Casual Theory of Perception?.