# Agata Kristi Knjige.pdf |BEST|

Agata Kristi Knjige.pdf

$exp = explode(“-“, “$_POST[x]”);
Your $_POST[x] variable does not contain a dash in it. Try:$exp = explode(“-“, $data[‘x’]); Q: Logic fails Can someone please help me solve my logic problem? Problem: The number of votes cast for each of the Democrats (D) and the Republicans (R) are determined as: For party D$\ \ \ \ \ \ v(D) = p(D)\timesn_{D} + v(R)\ \ \ \ \ \ v(R) = p(R)\timesn_{R} + v(D)$For party R$\ \ \ \ \ \ v(R) = p(R)\timesn_{R} + v(D)\ \ \ \ \ \ v(D) = p(D)\timesn_{D} + v(R)$Where$p(X)$is the proportion of votes received by the party$X$, and$n_{X}$is the total votes received by$X$. What I did was: (1)$p(D)=1/2$,$p(R)=1/2$(2)$\textbf{Case D}$,$\textbf{$n_{D}=$ number of votes cast for Democrats }$,$\textbf{$v(D)=$ votes cast for Democrats }$Therefore,$\textbf{$v(D) = p(D) \times n_{D}$}$. (3)$\textbf{Case R}$,$\textbf{$n_{R}=$ number of votes cast for Republicans }$,$\textbf{$v(R)=v(D)=$ votes cast for Republicans }$Therefore,$\textbf{$v(R)=v(D)$}$. But, I am getting the wrong answer to every question ( for both parties) Any help would be appreciated A: Each person votes for only one candidate. So there are$n_{R}\$ people voting for Republicans