Skip to main content

Posts

Get the input(N) as float number from the user and display the numbers in one, two and three digit floating numbers as displayed in sample output. Input format A float number (N). Output format One digit floating number Two digit floating number Three digit floating number. Sample testcases Input 1 12.2345

  Get the input(N) as float number from the user and display the numbers in one, two and three digit floating numbers as displayed in sample output. Input format A float number (N). Output format One digit floating number Two digit floating number Three digit floating number. Sample testcases Input 1 12.2345 OUTPUT #include<stdio.h> #include<stdlib.h> int main() {     double number;     scanf("%lf",&number);     printf("%.1f\n%.2f\n%.3f\n",number,number,number);     return 0; }

Write a program to add two numbers and display the result Input format Inputs are two numbers in each line

  Write a program to add two numbers and display the result Input format Inputs are two numbers in each line Output format Print sum of two given numbers Note: Printing unwanted or ill-formatted data to output will cause the test cases to fail Sample testcases Input 1 2 4 OUTPUT #include<stdio.h> #include<stdlib.h> int main() {     int a=0;     int b=0;     scanf("%d",&a);     scanf("%d",&b);     printf("%d",a+b);     return 0; }

John made a huge profit out of his grocery shop. But, his profit got reduced due to his wrong calculation in providing the balance amount to his customers.

  John made a huge profit out of his grocery shop. But, his profit got reduced due to his wrong calculation in providing the balance amount to his customers. Once he started to realize his mistakes, he is trying to make out this work with his robot. So that his profit is safe. He finds you to provide a programming solution to his problem. Get  purchase value and cash given by the customer and calculate the balance amount. Input format Two positive integers, First one is the purchase value and other one is the Cash given by the customer in each line Output format Numerical value which is the balance amount to be given back to the Customer Note: Printing unwanted or ill-formatted data to output will cause the test cases to fail Sample testcases Input 1 28 100 OUTPUT #include<stdio.h> #include<stdlib.h> int main() { int purchase=0; int cash=0; scanf("%d",&purchase); scanf("%d",&cash); printf("%d",cash-purchase); ret...

John made a huge profit out of his grocery shop. But, his profit got reduced due to his wrong calculation in providing the balance amount to his customers.

John faced difficulty in calculating the purchase value of the same product with varied quantities. So he tries to transfer this multiplication job to his robot. Help John by writing a program for the robot to reduce his difficulty. Input format Two positive integers which are the cost and number of the product purchased in each line Output format A single positive integer which is the quantitative total value of that product purchased Note: Printing unwanted or ill-formatted data to output will cause the test cases to fail Sample test cases Input 1 10 8 OUTPUT #include<stdio.h> #include<stdlib.h> int main() { int cost=0; int number=0; scanf("%d",&cost); scanf("%d",&number); printf("%d",cost*number); return 0; }

What could be the meaning of the word 'obscurantist' as inferred from the passage?

  Give people power and discretion, and whether they are grand viziers or border guards, some will use their position to enrich themselves. The problem can be big enough to hold back a country's development. For most people in the world, though, the worry is not that corruption may slow down their country's GDP growth. It is that their daily lives are pervaded by endless hassles, big and small. And for all the evidence that some cultures suffer endemic corruption while others are relatively clean, attitudes towards corruption, and even the language describing bribery, is remarkably similar around the world. In a testament to most people's basic decency, bribe-takers and bribe-payers have developed an elaborate theater of dissimulation. This is not just to avoid detection. Even in countries where corruption is so common as to be unremarkable and on the prosecutor and even when the transaction happens far from snooping eyes bribe is almost always dressed up as some other kind...

What is the author likely to agree to in the following?

  Give people power and discretion, and whether they are grand viziers or border guards, some will use their position to enrich themselves. The problem can be big enough to hold back a country's development. For most people in the world, though, the worry is not that corruption may slow down their country's GDP growth. It is that their daily lives are pervaded by endless hassles, big and small. And for all the evidence that some cultures suffer endemic corruption while others are relatively clean, attitudes towards corruption, and even the language describing bribery, is remarkably similar around the world. In a testament to most people's basic decency, bribe-takers and bribe-payers have developed an elaborate theater of dissimulation. This is not just to avoid detection. Even in countries where corruption is so common as to be unremarkable and on the prosecutor and even when the transaction happens far from snooping eyes bribe is almost always dressed up as some other kind...

S1: Venice is a strange and beautiful city. S6: This is because Venice has no streets. P: There are about four hundred old stone bridges joining the island of Venice. Q: In this city, there are no motor cars, no horses, and no buses. R: There are small islands near one another. S: It is not an island, but a hundred and seventeen islands. PQRS

  In the below questions each passage consists of six sentences. The first and sixth sentences are given in the beginning. The middle four sentences have been removed and jumbled up. These are labelled P, Q, R and S. Select the proper order for the four sentences. Question S1: Venice is a strange and beautiful city. S6: This is because Venice has no streets. P: There are about four hundred old stone bridges joining the island of Venice. Q: In this city, there are no motor cars, no horses, and no buses. R: There are small islands near one another. S: It is not an island, but a hundred and seventeen islands. PQRS PRQS SRPQ CORRECT PQSR