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


label Computer Science
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

Nov 22nd, 2017

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

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Nov 22nd, 2017
...
Nov 22nd, 2017
Nov 23rd, 2017
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