Showing posts with label Area of the Circle Version 1.0. Show all posts
Showing posts with label Area of the Circle Version 1.0. Show all posts

Thursday, July 4, 2019

Area of the Circle Version 1.0


Write a program using structure and function to compute the area of the circle in the C programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com




Sample Program Output


Program Listing

/*circle.c
 Author    : Mr. Jake Rodriguez Pomperada,BSCS,MAED-IT
 Date      : December 1, 2018  Saturday 9:01 PM
 Location  : Bacolod City, Negros Occidental
 Website   : http://www.jakerpomperada.com
 Emails    : jakerpomperada@jakerpomperada.com
             jakerpomperada@gmail.com
             jakerpomperada@yahoo.com
             jakerpomperada@aol.com
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>

struct circle {
  char name[100];
  float radius;
  float area;
};

int main() {
    circle test;
    char reply;
    float area=0.00;
do {
    printf("\n\n");
    printf("\t\tArea of the Circle Version 1.0");
    printf("\n\n");
    printf("\tEnter the name of the Circle          : ");
    gets(test.name);
    printf("\n");
    printf("\tEnter the given Radius of the Circle  : ");
    scanf("%f",&test.radius);
    printf("\n");
    printf("\t\tSummary of Report");
    printf("\n");
    area = (3.14 * test.radius * test.radius);
    printf("\n\tName of the Circle         : %s ",test.name);
    printf("\n");
    printf("\n\tThe Area of the Circle is  : %.2f ",area);
    printf("\n\n");
    printf("\tDo You Want to Continue y/n? : ");
    scanf("%s",&reply);
    if (toupper(reply) == 'N') {
        printf("\n\n");
        printf("\t\t Thank You For Using This Software !!!");
        break;
    }
    } while (toupper(reply!='Y'));
    printf("\n\n");
    system("pause");
}