Questions: 1 680

Answers by our Experts: 1 680

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

write a c program that displays your name ,postal address,the name of university and the roll number?
create a program that will ask the users to input a price of the item and will display its coded value as
c o m p u t e r c y
0 1 2 3 4 5 6 7 8 9
for exam the output is:
enter the price of the item: 123.4
the coded price is: omp.u
How is it possible to create a table header that is filled in with a standard input from a text file using arrays?
Towers of Hanoi (Recurssion)?
This is the Program. (I have understood how the game works, but not able to understand and trace out the PROGRAM for it.)
#include<stdio.h>
#include<conio.h>
void towers(int n, char source, char dest, char aux);
void main()
{
int n;
clrscr();
printf("\n Enter the number of disks:");
scanf("%d",&n);
towers(n,'A','C','B');
}
void towers(int n, char source, char dest, char aux)
{
if(n==1)
{
printf("\n Move Disk 1 from peg %c to peg %c",source,dest);
return;
}
towers(n-1,source,aux,dest);
printf("\n Move dist %d from peg %c to peg %c\n",n,source,dest);
towers(n-1,aux,dest,source);
}
Please explain how i should trace the program. Also why is the return statement required inside the IF condition? (If i dont give it, it gives me error.) .
write a Program in c to find the sum and average of 1D array?
Program to calculate sum and average of the elements stored in an array?
Perera & Sons maintain their Employee Records (Maximum 10) in the following manner. Write Program for the following.






Option One
This option should allow you to enter the employee’s details. You have to enter the EmpNo, EmpName, Age and Salary. (Maximum of 10 records, but need not to be 10)

Option Two
This option must display All the employee’s details, in the following format.

Employee No. Name Age Salary
1000 Sam 26 5000
1001 Peter 27 4500
1002 Tony 25 6000
--- --- -- ---
--- --- -- ---

Option Three
This must allow you to enter the Over time rate and Over time hours for the Employee No.’s you have entered already. Over time rate must be a unique value for all employees. It has to calculate the Over time Amount and display that also.

(Over time Amount = Over time rate X Over time Hours)




Option Four
This option has to display the Employee’s Gross Wage and Bonus details in the following format.

(Gross Wage=Salary + Over time Amount)

Gross Wage Bonus
<3000 No Bonus
3000 – 4499 10% of the GW
4500 – 5999 15% of the GW
>=6000 25% of the GW

Employee No. Name Gross Wage Bonus
1000 Sam Value Value
1001 Peter Value Value
1002 Tony Value Value
1003 John Value Value
--- --- --- ---
--- --- --- ---
--- --- --- ---

Write the program with proper functions/procedures.
#‎include‬ <stdio.h>
int main()
{
int x = 0,y = 0, z;
z = ++x || ++y;
printf("%d %d %d",x,y,z);
}
its output will be x=1 y=0, z=1.
how it is print y=0? give me reason please
write a program to find maritual status of a male using if condetion onlt
write a c program on menu driven which has name and password for logins and asks retype password and store it
LATEST TUTORIALS
APPROVED BY CLIENTS