↳
Questions are average and we select answers with in secs.
↳
SYNTAX Select employee_name from table1 having count(employee_id)>1 group by employee_id ; ACTUAL CODE Select employee_name from table1 having count(employee_id)>1 group by employee_id ; Less
↳
THIS IS FOR UNDER STANDING ONLY WHILE WRITING WRITE IT AS PARAGRAPH if( office assignment > personal work ) { Printf( “ Personal work will be done by some other person on behalf of me under my supervision “ ); } Else { Printf( “ office assignment will be done by my immediate junior under my continuous guidance and supervision “ ); } Less
↳
#include float main() { float LC , IC , MB , LCC , ICC , MBC , TC ; printf(" Enter the talking time for local calls in minutes "); scanf("%f", &LC ); printf(" Enter the talking time for International calls in minutes "); scanf("%f", &IC ); printf(" Enter the Data consumed in MB "); scanf("%f", &MB ); if(LC > 50) { LCC = ( LC * 0.5 * 0.01 ); } else { LCC = ( LC * 1); } ICC = ( IC * 2 * 0.01 ); MBC =( MB * 1 * 0.01 ); TC = ( LCC + ICC + MBC ); if( TC > 500 ) { TC = ( TC - ( TC * 0.05 ) ) ; } printf ( " local calls cost = %f Rs" , LCC); // LCC = local calls cost printf ( " International calls cost = %f Rs" , ICC); // ICC = international calls cost printf ( " Data cost = %f Rs" , MBC);// MBC = data consumed in mb cost printf ( " Total cost = %f Rs " , TC );// TC = total cost return 0; } Less
↳
solutions for the above question is written below the question itself .
↳
#include int main() { float TF , M1 , M2 , M3 , D1 , D2 , D3 , AM , F1 , F2 , F3 , RF ; printf( "Enter the total amount of fuel in litres"); scanf("%f", &TF); printf("Enter the mileage for smooth road"); scanf("%f ",&M1); printf("Enter the mileage for medium road"); scanf("%f ",&M2); printf("Enter the mileage for rough road"); scanf("%f ",&M3); printf("Enter the distance travelled in smooth road"); scanf("%f",&D1); printf("Enter the distance travelled in medium road"); scanf("%f",&D2); printf("Enter the distance travelled in rough road"); scanf("%f",&D3); AM = (( M1+M2+M3)/3); F1=(D1/M1); F2=(D2/M2); F3=(D3/M3); RF=(TF-F1-F2-F3); printf("Remaining fuel = %f", RF); printf(" Average mileage = %f" , AM ); return 0; } Less
↳
#include void main() { float AR , BR , APP = 0 , BPP = 0; int n , X ; printf("Enter the population of country A"); scanf("%f",&APP); printf("Enter the population of country B"); scanf("%f",&BPP); printf("Enter rate at which population increases in country A in % "); scanf("%f",&AR); printf("Enter rate at which population increases in country B in %"); scanf("%f",&BR); printf(" Enter the number of years to be calculated "); scanf("%d",&n); for(X=0;XBPP) { printf("population country A > population country B = %d years \n \n", ( X+1 )); } else { printf( " Till now population A < population B = %d years \n \n" ,( X+1) ); } } return 0; } Less