Ask Experts Questions for FREE Help !
Ask
    Latimeradam's Avatar
    Latimeradam Posts: 4, Reputation: 1
    New Member
     
    #1

    Jan 27, 2015, 01:53 PM
    I need help trying to create a program?
    Hi

    I am new to programming and I am struggling trying to create this program using the if solutions here is what I want to create
    Produce a program that would calculate the perimeter of the triangle, the area of the triangle and the height of the triangle from the length of the three sides of a triangle. If the three lengths of the sides of the triangle do not define a valid triangle then the user must be notified of this and no calculation will be performed upon this data.


    Required maths formula

    Heron’s formula:

    Area of triangle = SQRT(s(s-a)(s-b)(s-c))
    where a, b, c are the three sides, s = (a + b + c)/2 and c is the base of the triangle

    Height of the triangle = (Area of triangle)*2/c

    Perimeter of triangle = a + b + c

    Triangle types:

    Scalene – all sides unequal
    Isosceles – two sides only equal
    Equilateral – all sides equal
    Right Angled – one angle of 90 degrees
    CravenMorhead's Avatar
    CravenMorhead Posts: 4,532, Reputation: 1065
    Adult Sexuality Expert
     
    #2

    Jan 27, 2015, 03:23 PM
    How is the triangle inputed into your program?
    Latimeradam's Avatar
    Latimeradam Posts: 4, Reputation: 1
    New Member
     
    #3

    Jan 28, 2015, 04:32 AM
    visual basic C#
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #4

    Jan 28, 2015, 05:58 AM
    Either you are using VB or C# not both.

    This appears to be a homework assignment. We won't do your work for you. Show us your code or the code not working and we will try to help.
    CravenMorhead's Avatar
    CravenMorhead Posts: 4,532, Reputation: 1065
    Adult Sexuality Expert
     
    #5

    Jan 28, 2015, 08:31 AM
    I didn't ask what your tools were, I asked how they're being read in.
    Latimeradam's Avatar
    Latimeradam Posts: 4, Reputation: 1
    New Member
     
    #6

    Jan 29, 2015, 12:29 PM
    I have got the codes but it seems to working in form not in console how could I convert it to console.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Software program to create contracts [ 5 Answers ]

I operate out of NJ and need to create a contract for my services. Can you suggest a software program I can use that is not to complicated

Need c++ program to create a exam [ 1 Answers ]

Hi What I want to do is create in c++ a true/false Including a percentage of each true or false Statement type of exam. Example two questions Answer true or false and indicate what percent from 1 100 fits your reply. 1. True, false, 40% "question" You like hot days 2 true, false, 40%...

Want to write program to create computer driven car [ 4 Answers ]

How hard would it be to write a program that takes input from 4 wireless high-speed digital video cameras and use it to be able to drive a car? My idea is to write this program, put sensors on the manual controls, and use RC servos to control controls. Use the sensors slaved to another comuter in...


View more questions Search