Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <stdio.h> #include <math.h> #include <conio.h> //These are the constants that will be used for the calculations const float pi = 3.14; const float aluminum_compression = 15000; const float steel_compression = 25000; const float copper_compression = 20000; int main() { float load; int userchoice; float area; float radius; float diameter; printf("\nPlease select a metal of your choice:"); printf("\n\n1 = Steel"); printf("\n2 = Aluminum"); printf("\n3 = Copper"); do{ printf("\n\nPlease select 1, 2 or 3 : "); scanf("%d",&userchoice); }while(userchoice<1 || userchoice>3); printf("\nEnter The Compression Load : "); scanf("%f",&load); switch(userchoice) { case 1: area=load/steel_compression; break; case 2:
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern