SubjectMate | Discussion
Welcome to the discussion portal. A place to gain and share knowledge. Here you can ask questions and connect with people who contribute unique insights and quality answers. It is a place for people from around the world to ask and answer questions, and to learn from that process. Every piece of content on the site is generated by users, meaning it is created, edited, and organized by the same people that use the website.
Ask a Question Answer a QuestionQuestion 3 Mylo Ltd is a small engineering business that produces a range of central heating syst...
For the figure shown answer the following: if a-8 in, b-8 in, radius of the circle = 2 in, radius...
A 440 V. 50 Hz two pole, Y-connected induction motor is rated at 75kW. The equivalent circuit par...
Part II: Write a Program Question 1: [25 points] Write a program that prompts the user to enter a...
Part II: Write a Program Question 1: [25 points]
Write a program that prompts the user to enter an integer consisting of 5 digits (between 11111 and 99999). The program should print the sum of even digits and the multiplication of odd digits.
Hint: Break the number into four separate digits.
Sample Run1:
Enter a 5 digit number: 85324
Sum of even digits: 14
Multiplication of odd digits: 15
Sample Run2:
Enter a 5 digit number: 23563
Sum of even digits: 8
Multiplication of odd digits: 45
Sample Run3:
Enter a 5 digit number: 45
You should enter a number between 1111 and 9999!
Introduction to programming
Name: ID# Q.5 Sketch the terminal characteristics of series generator with high armature reaction...
Let s(t) be an angle modulated signal: s(t) = A_c cos[w_c t + (t)] Where (t) = {k_p m(t) PM k_f...
What is self esteem and how to improve self esteem and how to know your self esteem is low and what is the symptoms of low self esteem.
What is self esteem and how to improve self esteem and how to know your self esteem is low and what is the symptoms of low self esteem.
Explain how a high performing company like Japan Airlines fell into serious financial t...
Explain how a high performing company like Japan Airlines fell into serious financial trouble due to the wrong strategic movement and also explain how a monk turned into CEO saved this company from near collapse and revive it again with unique leadership and management style. Also, tell me in one sentence what lesson we can learn from this case as students of Management? (300 words)
Program 3, “Square,” will implement a data type Square that represents squares with the x and y c...
Program 3, “Square,” will implement a data type Square that represents squares with the x and y coordinates of their upper-left corners and the length.
The API should be as follows.
Square(double x, double y, double length) //constructor
double area() //returns the area of the square
double perimeter() //returns the perimeter of the square
boolean intersects(Square b) //does this square intersect b? Two squares would intersect if they share one or more common points
boolean contains(Square b) //does this square contain b?
void draw() //draw this square on standard drawing
Note: The program should include a main method to test that it does the following.
Instantiate a Square object whose upper-left corner coordinates and length are given as command-line arguments. It should print out the area and perimeter of the square.
Prompt the user for a second square’s upper-left corner coordinates and length, and indicate whether it intersects with the square specified earlier and also whether it contains the square specified earlier.
Provide a pop-up window that displays the two squares.
A sample run would be as follows.
java Square 0.2 0.7 0.3
The area is 0.09
The perimeter is 1.2
Enter the upper-left coordinates and the length of a square: 0.3 0.6 0.4
It intersects the first square.
It does not contain the first square.
Also a window should pop up that displays both the squares.