No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kuchendiagramm_v2.tex 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. \begin{frage}[3]%% Anzahl Punkte für diese Aufgabe
  2. Total wurden \textbf{480 Personen} zu Handymarken befragt. Das
  3. folgende Kuchendiagramm zeigt einige Werte. {\color{green}Apple} wurde in \%
  4. angegeben, {\color{red}SAMSUNG} in absoluten Zahlen (168 Personen) und {\color{blue}Huawei} im
  5. Sektorwinkel (der Vollkreis misst 360\degre{}).
  6. Beantworten Sie die untenstehenden Fragen. (Tipp: Tabelle)
  7. \newcommand{\slice}[5]{
  8. \pgfmathparse{0.5*#1+0.5*#2}
  9. \let\midangle\pgfmathresult
  10. % slice
  11. \draw[thick,fill=black!10] (0,0) -- (#1:1) arc (#1:#2:1) -- cycle;
  12. % outer label
  13. \node[label=\midangle:#5] at (\midangle:1) {};
  14. % inner label
  15. \pgfmathparse{min((#2-#1-10)/110*(-0.3),0)}
  16. \let\temp\pgfmathresult
  17. \pgfmathparse{max(\temp,-0.5) + 0.8}
  18. \let\innerpos\pgfmathresult
  19. \node at (\midangle:\innerpos) {#4};
  20. }
  21. \begin{center}
  22. \begin{tikzpicture}[scale=3]
  23. \newcounter{aKuchB}
  24. \newcounter{bKuchB}
  25. \foreach \p/\f/\t in {
  26. 20/{\color{blue}72\degre{}}/{\color{blue}Huawei},
  27. 40/{\color{red}40\%}/{\color{red}Apple},
  28. 35/{\color{green}168 P.}/{\color{green}Samsung},
  29. 5/???/andere}
  30. {
  31. \setcounter{aKuchB}{\value{bKuchB}}
  32. \addtocounter{bKuchB}{\p}
  33. \slice{\theaKuchB/100*360}
  34. {\thebKuchB/100*360}
  35. {\p}{\f}{\t}
  36. }
  37. \end{tikzpicture}
  38. \end{center}
  39. \vspace{4mm}
  40. a) Wie viele Prozente (\%) machen die 168 Personen (168 P.) mit Handymarke {\color{green}SAMSUNG} aus?
  41. \LoesungsRaum{35\%}
  42. \vspace{2mm}
  43. b) Wie viel Grad (\degre) macht der Winkel des Sektors für die Handymarke {\color{red}Apple} aus?
  44. \LoesungsRaum{144\degre}
  45. \vspace{2mm}
  46. c) Wie viele Personen (Anzahl) gaben eine «andere» Handymarke an?
  47. \LoesungsRaum{24 Personen}
  48. \platzFuerBerechnungen{7.2}%%
  49. \end{frage}