Can you please help me to print Value?
Value = number of units * unit price;
#include<stdio.h>
#include<conio.h>
#define MAX 5
Type: Posts; User: hnparmar
Can you please help me to print Value?
Value = number of units * unit price;
#include<stdio.h>
#include<conio.h>
#define MAX 5
Thank You so much My Friend.
#include<stdio.h>
#define N 4
int main()
{
int i , j=1,location,x=1;
float grade[N] , total = 0 , average , max;
for(i=0;i<=N;i++)
{
printf("\nPlease enter grade : ");...
Output of the Program:
Student Grade
1 10.0
2 20.0
3 30.0
4 40.0
5 50.0
--------------------
Average Grade: 30.00
I am Extremely sorry sir! Please sir give me one more chance. I am so sorry stahta01.
Can you please help me to fix this progaram? Thank you.
2. This a mini - inventory program. You own a used book store. People buy books from your store and sell books to your store. You carry two types of books - adult books and children's books. ...
Modify program 3 by saving the header file on your memory stick and remove it from the Header section of the VC++ in the Solutions window.
/* Programmer : Himanshu Parmar
PRG155F
DATE :...
Thank you very much Mr.Salem.
You help me a lot. Thank you Boss!
Can you please help me to add the source file?
Modify program by saving the function, the define and the macro you wrote in a header file. Run the program using the same or similar main function.
#include<stdio.h>
#include<conio.h>...
#include<stdio.h>
#include<limits.h>
#define pi 3.141592654
float spherevolume (float);
main()
{
float a,v;
printf("Please enter the radius: ");
scanf("%f",&a);
v = spherevolume(a);
#include<stdio.h>
#include<limits.h>
#define pi 3.141592654
void spherevolume (float a);
main()
{
float a,v;
float answer;
printf("Please enter the radius: ");
scanf("%f",&a);
can you please help me in the program?
1. Write a program the calculates the volume of a sphere. Use a define to set Pi to 3.14 and a macro for the formula for the sphere. V = 4/3PiR3.
In main ask for the radius (R). Pass it...
#include<stdio.h>
void fun (float); /* the FUNCTION PROTOTYPE */
void fun2 (char , float);
main()
{
float a;
printf("Please enter a number: "); /* Program in MAIN */
scanf("%f",&a);...
2. Write a program with two functions. In main ask for a number. Pass this to the first function and print the value. In the first function ask for a character. Pass the first number and the...
Thank You So Much BatchProgrammer! You help me a lot.
4. Write a program with two functions both called from main(). The first function just prints "Hello". In the second function ask the user to enter a number. Calculate the square root of the...
Thank you very much sir. The program is working fine. Thank you so much.
#include<stdio.h>
char fun (char);
main()
{
char x;
int answer;
How to pass character to the function?
char fun (char);
main()
{
char x;
int answer;
printf("Please enter a character: ");
#include<stdio.h>
char fun3 (char char);
main()
{
char a;
char b;
char final;
printf("Please enter a character: ");
scanf("%c",&a);
printf("\nPlease enter another...
2. Write a program that asks for a character in main, passes it to a function which then prints the character and returns the next character in the alphabet to main. In main print the new...
1. Write a program that uses a function to ask for a number (In the function), multiplies it by two and prints the result in the function. The only executable line in main should be the...
Write a program that a prof can use to enter the test marks of several students and which calculates the average mark of each student. Ask the user how many students he has, then ask him to enter...