Help help plzzzz.........

  • Work-from-home

diya.

TM Star
Sep 23, 2010
1,230
665
613
in dreamzzz......
Asslam O Alykum

mjhy yaha computer programing ki help cahaye c# progrmming may in visual studio may
kia ap may say koi in qustions ko solve kr skta hay.....mjhy submit krwany hay ...............

plzzzz agr koi bta skta hay to answers bta day .....


Q.1 If cost price and selling price of an item is input through the keyboard, write a program to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he incurred.
Q.2 Any integer is input through the keyboard. Write a program to find out whether it is an odd number or even number.
Q.3 Any year is input through the keyboard. Write a program to determine whether the year is a leap year or not. (Hint: Use the % (modulus) operator)
Q.4 A five-digit number is entered through the keyboard. Write a program to obtain the reversed number and to determine whether the original and reversed numbers are equal or not.
Q.5 If the ages of three persons are input through the keyboard, write a program to determine the youngest of the three.
Q.6 Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another.
Q.7 Write a program to print all the ASCII values and their equivalent characters using a while loop. The ASCII values vary from 0 to 255.
Q.8 Write a program to enter the numbers till the user wants and at the end it should display the count of positive, negative and zeros entered.
Q.9 Write a program to print pattern.
*
**
***
****
*****
*******

Q.10 Write a program to take the weight (in pounds) of an object as input data; compute and print the object’s weight in kilograms and grams. (Hint: one pound is equal to 0.453592 kilogram or 453.59237 grams).
Q.11 If a human heart beats on the average of once a second, how many times does the heart beat in a lifetime of 78 years? (Use 365.25 for days in a year).
Q.12 Take the radius of a circle and compute and print its area and circumference.
Q.13Write a program to print
*****
***
**
*



can anyone solve themmmmmmmm...............
 
  • Like
Reactions: Zee Leo and hoorain

Nelly

VIP
Sep 23, 2009
97,862
38,645
1,313
United Kingdom
google se help le len
n if not, den idhar jo koi computer master hon ya is programme se familiar tou wohi aapki help kar sakenge:)
 
  • Like
Reactions: diya.

SHB_Bhaiya

محمد شعیب ںاصر
Super Star
Jan 31, 2010
51,098
10,427
1,313
39
Karachi
Question bohat zyada hain aur me sone wala hon so jitne ka reply de saka zaroor don ga...
 
  • Like
Reactions: diya.

SHB_Bhaiya

محمد شعیب ںاصر
Super Star
Jan 31, 2010
51,098
10,427
1,313
39
Karachi
Answer of first question

#include <stdio.h>
main()
{

int cp,sp,profitloss;

printf ("Enter the cost price and selling price of the item:");

scanf ("%d %d", & cp, & sp);

profitloss=sp-cp;

if (sp>cp)
{
printf(" Profit =%d",profitloss);

}
else if (cp>sp)
{
printf (" Loss =%d",profitloss);

}
else if (sp==cp)
{

printf ("No profit no loss ");
}
}
 
  • Like
Reactions: diya.

SHB_Bhaiya

محمد شعیب ںاصر
Super Star
Jan 31, 2010
51,098
10,427
1,313
39
Karachi
Programe for second one


#include <stdio.h>
main()
{

int num;

printf ("Enter a number to be checked for even / odd :");
scanf ("%d",&num);

if (num%2==0)
{
printf (" The entered number is EVEN .\n");

}
else
{
printf (" The entered number is ODD .\n");

}
}
 

SHB_Bhaiya

محمد شعیب ںاصر
Super Star
Jan 31, 2010
51,098
10,427
1,313
39
Karachi
Kya meri posting invisible hai....

Diya aap ko programe written me chahye ya fir flow chart or something else
 
  • Like
Reactions: diya.

SHB_Bhaiya

محمد شعیب ںاصر
Super Star
Jan 31, 2010
51,098
10,427
1,313
39
Karachi
Third programe for check leap year

#include <stdio.h>
main()
{

int year;

printf ("Enter the year to be checked for validity as a Leap Year:");
scanf ("%d",&year);

if (year%4==0)
{
printf (" The year is a Leap Year.\n");

}
else
{
printf(" The year is not a Leap Year.\n");

}
}
 

SHB_Bhaiya

محمد شعیب ںاصر
Super Star
Jan 31, 2010
51,098
10,427
1,313
39
Karachi





nae ....thankxx yr...question 1 may abhe visual may type kr rhe the......nd mjhy coding likh k debug krwana hay.....
ok to pore pore programe if any error you have tell me I'll correct it.... Per mere sone se pehle pehle tuk bata do jab tuk aur programe post kerta hon abhi bohat sare baki hain :s
 
  • Like
Reactions: diya.
Top