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_np.tex 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. \begin{frage}[3]%% Anzahl Punkte für diese Aufgabe
  2. Total wurden \textbf{270 Personen} zur Marke ihres Haupt-Laptops/Tablets befragt. Das
  3. folgende Kuchendiagramm zeigt einige Werte. {\color{green}HP} wurde
  4. in absoluten Zahlen
  5. angegeben (112 P), {\color{red}Apple} in \% (40\%) und {\color{blue}Lenovo} im
  6. Sektorwinkel ($36\degre{}$ der Vollkreis misst $360\degre{}$).
  7. Beantworten Sie die untenstehenden Fragen. (Tipp: Tabelle)
  8. \newcommand{\slice}[5]{
  9. \pgfmathparse{0.5*#1+0.5*#2}
  10. \let\midangle\pgfmathresult
  11. % slice
  12. \draw[thick,fill=black!10] (0,0) -- (#1:1) arc (#1:#2:1) -- cycle;
  13. % outer label
  14. \node[label=\midangle:#5] at (\midangle:1) {};
  15. % inner label
  16. \pgfmathparse{min((#2-#1-10)/110*(-0.3),0)}
  17. \let\temp\pgfmathresult
  18. \pgfmathparse{max(\temp,-0.5) + 0.8}
  19. \let\innerpos\pgfmathresult
  20. \node at (\midangle:\innerpos) {#4};
  21. }
  22. \begin{center}
  23. \begin{tikzpicture}[scale=3]
  24. \newcounter{aKuchBnp}
  25. \newcounter{bKuchBnp}
  26. \foreach \p/\f/\t in {
  27. 20/{\color{blue}36\degre{}}/{\color{blue}Lenovo},
  28. 30/{\color{red}40\%}/{\color{red}Apple},
  29. 32/{\color{green}112 P.}/{\color{green}HP},
  30. 18/???/andere}
  31. {
  32. \setcounter{aKuchBnp}{\value{bKuchBnp}}
  33. \addtocounter{bKuchBnp}{\p}
  34. \slice{\theaKuchBnp/100*360}
  35. {\thebKuchBnp/100*360}
  36. {\p}{\f}{\t}
  37. }
  38. \end{tikzpicture}
  39. \end{center}
  40. (Die Skizze ist nicht Maßstabsgetreu.)
  41. \vspace{4mm}
  42. a) Wie viele Prozente (\%) machen die 112 Personen (112 P.) mit
  43. {\color{green}HP} aus? (Geben Sie die Lösung in Prozenten auf zwei
  44. Dezimalen an.)
  45. \LoesungsRaum{41.48\%}
  46. \vspace{2mm}
  47. b) Wie viel Grad (\degre) macht der Winkel des Sektors für die Marke
  48. {\color{red} Apple} aus?
  49. \LoesungsRaum{144\degre}
  50. \vspace{2mm}
  51. c) Wie viele Personen (Anzahl) gaben eine «andere» Marke an?
  52. \LoesungsRaum{23 Personen}
  53. \platzFuerBerechnungen{7.2}%%
  54. \end{frage}