0
People I really don’t know where to start,how can I solve this problem? If someone can give me tips on how to do,.
MAKE a complete program to treat the problem described below:
Three friends decided to celebrate the birthday of one of them in a bar. They agreed to "rattle" the account of the takers consumed among all, pay for their own drinking and half of what is consumed by the birthday boy. If the account is displayed in the form below (with possible repeats and out of order):
0 tira gosto R$ww,ww
1 bebida R$xx,xx // para o primeiro (aniversariante)
2 bebida R$yy,yy //para o segundo
3 bebida R$zz,zz //para o terceiro
Calculate and show the part that will be up to each pay,.
int main()
{
double tiragosto = "ww,ww";
double bebida1 = "xx,xx";
//double bebida2 = yy,yy;
//double bebida3 = zz,zz;
double calculo = 0.0;
double amigo1A = 0.0;
double amigo2 = 0.0;
double amigo3 = 0.0;
calculo = (tiragosto/bebida1);
printf("resu: %lf",calculo);
IO_pause ( "Apertar ENTER para continuar." );
}
Not the way I do..
You have yet to post your code and your question. Take a tour (https://answall.com/tour) and see how to ask. Here no one will do exercises for you.
– anonimo
If you didn’t read it right, I asked for a hint on how to add the lyrics! I don’t want them to do the show for me.
– Bruna Ferreira
this is a math problem first, only after solving the math problem is it becomes a programming problem
– zentrunix
I think then that I made confused kkk, the right one would be the user to enter the value of the consumed drink.... and I solve the calculation?
– Bruna Ferreira
If you declare a variable with numeric format (int, float, double, etc.) you CANNOT assign a string to such a variable.
– anonimo
Asked the question. It would help a lot.
– Carlos Henrique