Given three sides of a triangle (a,b,c) as input. write a program to determine whether the triangle is Equilateral , Isosceles or Scalene?
INPUT:
The first line of input will contain an integer A
The second line of input will contain an integer B
The third line of input will contain an integer C
Output
If the given sides A,B & C are equal,print Equilateral
If the given sides any of two sides are equal, print Isosceles
If the given sides A,B,C are not equal to each other, print Scalene
Sample Input 1
4
4
4
Sample Output 1
Equilateral
Sample Input 2
3
2
3
Sample Output 2
Isosceles
Create a class player and implement relevant member functions and member variables inside your class.
While purchasing certain items, discount is offered based on the below conditions. If quantity and price per item are input through the keyboard, write a pseudo code and draw a flowchart to calculate the total expenses.
Purchase of item above or equal to 6000 – 15 % discount Purchase of item between 5000 and 5999 - 12 % discount Purchase of item between 4000 and 4999 - 08 % discount Purchase of item less than 4000 – 03 % discount
While purchasing certain items, discount is offered based on the below conditions. If quantity and price per item are input through the keyboard, write a pseudo code and draw a flowchart to calculate the total expenses.
Construct a class of fractions with both numerator and denominator being floats. Define the following functions in the class:
constructor
Operator functions for addition, subtraction, multiplication, and division of two fractions
Function input operator, output operator a fraction
Write a main program using the above fraction.
Construct the String class to describe a string of characters, with the following functions:
constructor, destructor, copy constructor, assignment operator function
Define operator to add two strings (concatenate two strings)
Functions that define comparison operations !=,==,>,>=,<,<=
Define input and output operators for a string
Functions that allow to assign/get (write/read) the value of a certain element in the Array
Write a main program using the above String class
Write a program that read four taste values for ten studens store the value in two dimensional array display the content of the array in tabular format using for loop
Assume you are working as a teaching assistant in the subject of “Web Based Database Applications”. Your job is to find highest assignment marks obtained by a student in this particular subject.
For this purpose you need to design a small web application considering the following points as given below.
• The title of the web page should be “Assignment No.2”.
• Webpage should start with a heading i.e., “BC200204808.”
• Page should have a table with 3 columns having column name std_name, Marks and Total_Marks.
Now, you need to write a PHP code that will find a highest marks among students by using max function for marks column.
• Marks and Student Name is same as shown in the sample output. You need to use multi-dimensional array for storing the values of marks against each student as shown in the sample output.
Sample output:
https://docs.google.com/document/d/1-qbuCeCDGxXZDhAT3JAi0007qgN3eKrGTuF3Bc8hQbw/edit?usp=sharing
by CodeChum Admin
I'm quite into games now, so how about we play In or Out! When a given number is even, the team scores so we shall print "In", but if it's not an even number, then we print "Out".
. Define basic algorithms to carry out an operation and outline the process of programming an application