(a) It is a standard bit of "bookwork" to prove, from no assumptions, $(p \lor \neg p)$ and you should make sure you know how to do it in your favourite natural deduction system. Here's the strategy.
What else can you do but assume the opposite and aim for a contradiction, so you start by making the temporary assumption
$\quad\quad | \quad \neg(p \lor \neg p)$
Now what can you do? No standard rules can be used to extract anything from this, so we'll need to make another assumption to proceed. but what? Well, sensibly, we don't want to introduce a new variable. So something involving just $p$. Let's try the simplest option (because it so quickly leads to a contradiction!), so we get
$\quad\quad | \quad \neg(p \lor \neg p)$
$\quad\quad | \quad\quad | \quad p$
$\quad\quad | \quad\quad | \quad (p \lor \neg p)$
$\quad\quad | \quad\quad | \quad \bot$
where we used or-introduction and immediately hit contradiction! So we can now use reductio and discharge the supposition. So to continue in the same vein ...
$\quad\quad | \quad \neg p$
$\quad\quad | \quad (p \lor \neg p)$
$\quad\quad | \quad \bot$
And lo! Our original supposition has now itself been reduced to absurdity and we can discharge it to get
$\neg\neg(p \lor \neg p)$
which classically entails
$(p \lor \neg p)$.
Exercises. Restyle this proof into your favourite natural deduction system. Then plug in the result to use it to complete the given exercise.
(b) The second proof should write itself if you think strategically. You know that you have to start like this:
$ (p \lor q)$
$ (p \to \neg q)$
$\quad \quad | \quad (p \to q)$
That's the two given premiss, and since we want to prove $(p \to q) \to (q \land \neg p)$ we use the standard tactic for proving a conditional result, i.e. assume the antecedent, and aim to derive the consequent, ok? So we make the temporary additional assumption $p \to q$, and aim to prove $q \land \neg p$.
Ok now note that have both $p \to q$ and $p \to \neg q$. Ah hah! That means $p$ leads to a contradiction and must be false! So .... let's use that!
$ (p \lor q)$
$ (p \to \neg q)$
$\quad \quad | \quad (p \to q)$
$\quad \quad | \quad\quad | \quad p $
$\quad \quad | \quad\quad | \quad q $
$\quad \quad | \quad\quad | \quad \neg q$
$\quad \quad | \quad\quad | \quad \bot$
$\quad \quad | \quad\neg p $
So that's half what we want! But now we have $\neg p$ and $p \lor q$ and that gives us $q$ by disjunctive syllogism, which will either be a basic rule of your natural deduction system, or a standard bit of bookwork to get by your rules. So you just need to continue, filling in as necessary ...
$\quad \quad | \quad\vdots $
$\quad \quad | \quad q $
$\quad \quad | \quad (q \land \neg p)$
$(p \to q) \to (q \land \neg p)$
where at the last stage we discharge that assumption back at line 3 by conditional proof. All done!