Write an user defined function

Assignment Help Computer Engineering
Reference no: EM13323702

Write an user defined function, that takes as input the x and y co-ordinate of three points, i.e. (x1,y1), (x2,y2) and (x3,y3). The output arguments represents the length of three side of a triangle i.e. l1,l2,l3. (25)

Conditions:-

1>If user gives input for just one point i.e. (x1,y1) show a warning that “You cannot for a triangle†and assign l1=0,l2=0 and l3=0.

2>If user gives input of two points i.e.(x1,y1) and (x2,y2) then assume (x3,y3)=(0,0)

And then calculate the length of three sides of the triangle.

3>If user gives less than two input number, or three inputs, five inputs, or more than six inputs, your program must terminate showing an error message.

 

Reference no: EM13323702

Questions Cloud

Why would savers be willing to hold treasury bills : With a falling price level, what happens to the actual real interest rate? Does your answer depend on what happens to the nominal interest rate? Briefly explain.
Design solution that would increase sustainability of water : Stormwater controls are typically designed by civil engineers. Stormwater is collected in pipes below the ground and routed to nearby surface water.
Calculate the year 0 value of operations : Free cash flow is expected to grow at a constant rate of 4% after year 2. The company's weighted average cost of capital is 10%. Calculate the Year 0 value of operations.
Find the amplitude of the steady-state motion : A system with m = 0.026 kg , k = 35 N/m and b = 0.59 kg/s is driven by a harmonically varying force of amplitude 3.6 N. Find the amplitude of the steady-state motion
Write an user defined function : Write an user defined function, that takes as input the x and y co-ordinate of three points, i.e. (x1,y1), (x2,y2) and (x3,y3). The output arguments represents the length of three side of a triangle i.e. l1,l2,l3. (25)
Write a matlab program that takes 2 number : Write a Matlab program that takes 2 number and choice of the user as input.
How much would the roe changed : Had it reduced its assets in this amount, and had the debt ratio, sales, and cost remained constant, by how much would the ROE changed?
Write an user defined function to print all the prime number : Write an user defined function to print all the prime numbers within a range.
Write a program that reads in a line of text, counts : Output of the letter count is a loop running from 0-25, with an if statement that allows output if the array entry isn't zero.

Reviews

Write a Review

Computer Engineering Questions & Answers

  How to identify as important to the process

How important is it to have an established process while implementing a new technology into an organization.

  How des operating on a general plaintext input

find out whether or not the assertion is true and if it is, prove that it is. If it is not, prove that it is not.

  How could the company benefit from e-commerce

How could the company benefit from e-commerce? Should it sell its products (all or some) over the web? Should it use its web site primarily to advertise its products and services?

  Do you agree with the inquisitors interrogation of veronese

Do you agree with the Inquisitor's interrogation of Veronese about his painting, originally titled Last Supper Or, do you side with Veronese Explain your response. As an artist, do you think you would have the courage to act as Veronese did

  Opening the "create and manage publications"

This project would challenge you to set up replication on your SQL Server installation. Every step to complete this process is not laid out for you here. Complete the steps and document your choices throughout the process with screen shots and exp..

  What are the challenges in rolling out a business

What is "enterprise-wide analytics technology," and how can it play a part in understand business processes? What are the challenges in rolling out a Business Intelligence tool.

  What is the time efficiency class of the algorithm

Write down an algorithm for finding the largest key in the binary search tree. What is the time efficiency class of your algorithm in the worst case?

  Security issues while users processing the database

Describe the security issues which may be encountered when the multiple users process the database concurrently.

  Display the miles per gallon obtained for each tankful

Display the miles per gallon obtained for each tankful

  Describing the microsoft access

Describe what is going on within the Microsoft Access. What role do you think SQL is playing?

  Make a third single dimension array to hold a sum

design a third single dimension array to hold a sum. Your main program will take the two arrays of float and pass them to the function addfloat() Inside the function, add the first array to the second array and put the total into the third array. ..

  Intrusion detection system or intrusion prevention system

Your company is deciding whether to employ the intrusion detection system (IDS), or an intrusion prevention system (IPS).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd