\begin{frage}[3]%% Anzahl Punkte für diese Aufgabe

  Total wurden \textbf{480 Personen} zu Handymarken befragt. Das
  folgende Kuchendiagramm zeigt einige Werte. {\color{green}Apple} wurde in \%
  angegeben, {\color{red}SAMSUNG} in absoluten Zahlen (168 Personen) und {\color{blue}Huawei} im
  Sektorwinkel (der Vollkreis misst 360\degre{}).

  Beantworten Sie die untenstehenden Fragen. (Tipp: Tabelle)

  \newcommand{\slice}[5]{
  \pgfmathparse{0.5*#1+0.5*#2}
  \let\midangle\pgfmathresult

  % slice
  \draw[thick,fill=black!10] (0,0) -- (#1:1) arc (#1:#2:1) -- cycle;

  % outer label
  \node[label=\midangle:#5] at (\midangle:1) {};

  % inner label
  \pgfmathparse{min((#2-#1-10)/110*(-0.3),0)}
  \let\temp\pgfmathresult
  \pgfmathparse{max(\temp,-0.5) + 0.8}
  \let\innerpos\pgfmathresult
  \node at (\midangle:\innerpos) {#4};
}


  \begin{center}
\begin{tikzpicture}[scale=3]

\newcounter{aKuchB}
\newcounter{bKuchB}
\foreach \p/\f/\t in {
  20/{\color{blue}72\degre{}}/{\color{blue}Huawei},
  40/{\color{red}40\%}/{\color{red}Apple},
  35/{\color{green}168 P.}/{\color{green}Samsung},
  5/???/andere}
  {
    \setcounter{aKuchB}{\value{bKuchB}}
    \addtocounter{bKuchB}{\p}
    \slice{\theaKuchB/100*360}
          {\thebKuchB/100*360}
          {\p}{\f}{\t}
  }

\end{tikzpicture}
  \end{center}

  
\vspace{4mm}

  a) Wie viele Prozente (\%) machen die 168 Personen (168 P.) mit Handymarke {\color{green}SAMSUNG} aus?

  \LoesungsRaum{35\%}

  \vspace{2mm}
  
  b) Wie viel Grad (\degre) macht der Winkel des Sektors für die Handymarke {\color{red}Apple} aus?

  \LoesungsRaum{144\degre}

  \vspace{2mm}
  
  c) Wie viele Personen (Anzahl) gaben eine «andere» Handymarke an?

  \LoesungsRaum{24 Personen}

\platzFuerBerechnungen{7.2}%%
\end{frage}