Given a sentence S, write a program to print the frequency of each word in S. The output order should correspond with the word's input order of appearance.
Create a class named Rectangle. Make 4 2-D points. Create the following function: -
1)Input Function.
2)Area Function. (In this function area will be calculated and returned).
3)IsRectangle (This will return Boolean i.e. if it is a rectangle, it will return true else it will return False)
4)Output Function.
5) Length Function.
6) Height Function.
7) Perimeter Function.
8) Diagonal Function.
Create a class named as RightAngleTriangle. In a right Angle Triangle, there are 3 points, which are 2-D points. There will be 3 members(vertices) i.e. Point2DA, Point2DB, Point2DC. Create the following function:-
1)Input Function.
2)Area Function. (In this function area will be calculated and returned).
3)IsRightAngleTriangle (This will return Boolean i.e. if it is a right angle triangle it will return True else it will return False)
4)Output Function.
5) Base Function. (It will return the length of Base).
6) Perpendicular Function. ( It will return the length of Perpendicular).
7)Hypotenuse Function. (It will return the length of Hypotenuse).
8)Alpha Function. ( It will return the angle between Base and Hypotenuse).
9)Beta Function. ( It will return the angle between Hypotenuse and Perpendicular).
Write a program to print the absolute difference between the two given numbers. (Absolute difference is the difference without the negative sign)
Make two 3D-points in a 3-Dimensional space. Calculate the distance between these two points. Instead of integer data type, use any other datatype for x,y,z values. Create an object pt, and call distance function as pt.Distance(pt2), which will calculate the distance between two 3-D points.
Make two 2D-points, points in cartesian plane. Calculate the distance between these points.
String Slicing
Given two strings
Write a function to add two 1D array elements. Use call by reference and return the sum array elements to the main function to printWrite a function to add two 1D array elements. Use call by reference and return the sum array elements to the main function to print
Implement a C++ program to perform addition and multiplication on two numbers, where the first number has to declare in namespace named as “window” and the second number has to declare in namespace named as “wind”.
Question 1: In your own idea, what is padlike device?
Question 2: In your own opinion and knowledge, how are you going to do the overall design process of HCI?