plz plz help me how can solve this.i dont know how to run programme.plz help me

Computer Science
Tutor: None Selected Time limit: 1 Day

Feb 1st, 2015

Q.1

#include<stdio.h>

#include<conio.h>

void main()

{

int i,choice;

float prefix,price=0.0;

char *country[4] = {"California","Texas","NewYork","Hawaii"}; 

float tax[4] = {10,8.25,8.875,4.712};

printf("Please enter the prefix amount: ");

scanf("%f",&prefix);

printf("\nselect your state:\n");

for(i = 0;i<4;i++)

{

printf("1%d - %s",i+1,country[i]);

}

 printf("Enter your input: \n");

scanf("%d",&choice);

switch(choice)

{

case 1:price =prefix *(tax[choice-1]/100);break;

case 2:price =prefix *(tax[choice-1]/100);break;

case 3:price =prefix *(tax[choice-1]/100);break;

case 4:price =prefix *(tax[choice-1]/100);break;

default: printf("Please enter a valid choice");

}

printf("\nThe sale price of the product is %f",price);

printf("\nPress any key to continue...");

}

Please choose as best answer.

Feb 4th, 2015

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Feb 1st, 2015
...
Feb 1st, 2015
Dec 3rd, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer