I need help with this problem. I just don't know what to do.

float price=56.95;
float tax=1.05;
float total=0;

total=price*tax;

print total;

Output_____________________________

My professor wants me to determine what is printed in the output statement at the end and than do a corresponding flowchart. Can anyone help me please.

Recommended Answers

All 3 Replies

What is the problem stopping you?

If you don't know how to multiply, sign up for a remedial math course, and drop programming for now.

If you thought someone would just happily do your homework for you, please think again. You learn nothing without working at it.

We HELP people with their program, we don't DO the program.

Do you understand what variables are?

Let's put it in different way, do you know what first line of the code means?

float price=56.95;
#include<stdio.h>
int main()
{
    float price=56.95,tax=1.05;
    float total=0;

    printf("total=%f",price*tax);
}

the output will be total=59.797497

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.