Using C# Exercise #3: Design and implement a program (name it CheckPoint) that prompts the user to enter the x-coordinate then y-coordinate of a point (in a Cartesian plane) as integer values. The program prints out the entered values followed by the location of the point on the plane. The possibilities for a point are: the origin point, on the x-axis, on the y-axis, in the first quadrant, in the second quadrant, in the third quadrant, or in the fourth quadrant. Format the outputs following the sample runs below.Sample run 1: X-coordinate is 0 Y-coordinate is 0 (0, 0) is the origin point.
For the following problem we need to have the following things into consideration:
Following is code for the same in C#.
using System;
public class CheckPoint
{
public static void Main()
{
Console.WriteLine("Enter X cordinate");
int xVal = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter Y cordinate");
int yVal = Convert.ToInt32(Console.ReadLine());
if(xVal == 0 && yVal ==0){
Console.WriteLine("({0}, {1}) is origin", xVal, yVal);
}else if(xVal == 0){
Console.WriteLine("({0}, {1}) is on Y Axis", xVal, yVal);
}else if(yVal == 0){
Console.WriteLine("({0}, {1}) is on X Axis", xVal, yVal);
}else if(xVal > 0 && yVal > 0){
Console.WriteLine("({0}, {1}) is in first quadrant", xVal, yVal);
}else if(xVal< 0 && yVal > 0) {
Console.WriteLine("({0}, {1}) is in second quadrant", xVal, yVal);
}else if(xVal < 0 && yVal < 0){
Console.WriteLine("({0}, {1}) is in third quadrant", xVal, yVal);
}else{
Console.WriteLine("({0}, {1}) is in fourth quadrant", xVal, yVal);
}
}
}
Sample output after running the program:



If you have
any problem regarding the understanding of the solution, do let me
know in the comment section.
Don't forget to like the solution, it really means a lot
Thanks
Using C# Exercise #3: Design and implement a program (name it CheckPoint) that prompts the user...
PLEASE DO IN PSEUDOCODE; Design and implement a program (name it CheckPoint) that prompts the user to enter the x-coordinate then y-coordinate of a point (in a Cartesian plane) as integer values. The program prints out the entered values followed by the location of the point on the plane. The possibilities for a point are: the origin point, on the x-axis, on the y-axis, in the first quadrant, in the second quadrant, in the third quadrant, or in the fourth...
Write a program that prompts the user to input the x-y coordinate of a point in a Cartesian plane. The program should then output a message indicating whether the point is the origin, is located on the x ( or y ) axis, or appears in a particular quadrant. using only iostream and functions
Design a Java application that prompts the user to input the x- and y-coordinates of a point in a Cartesian plane. The program then should output a message indicating whether the point is the origin, or is located on the x (or y) axis, or appears in a particular quadrant. For example: (0, 0) is the origin (4, 0) is on the x-axis (0, -3) is on the y-axis (-2, 3) is in the second quadrant The numbering of the...
PLEASE DO THIS IN C#.Design and implement a program (name it ProcessGrades) that reads from the user four integer values between 0 and 100, representing grades. The program then, on separate lines, prints out the entered grades followed by the highest grade, lowest grade, and averages of all four grades. Format the outputs following the sample runs below. Sample run 1: You entered: 95, 80, 100, 70 Highest grade: 100 Lowest grade: 70 Average grade: 86.25
PLEASE DO THIS IN PYTHON!!! 1.) Exercise #1: Design and implement a program (name it Youth) that reads from the user an integer values repressing age (say, age). The program prints out the entered values followed by a message as follows: If age is less or equal to 21, the message is “Youth is a wonderful thing. Enjoy.”. Finally, the program always prints out the message “Age is a state of mind.” Format the outputs following the sample runs below....
SOLVE IN PYTHON: Exercise #2: Design and implement a program (name it CompareArrays) that compares the content of 2 single-dimensional arrays of the same size. The program prompts the users to enter the array size. Then prompts the user to initialize each array with integer values. The program defines method Compare() that takes two signal-dimensional arrays of type integer. The method compares the content of the arrays and returns true (Boolean type) if the arrays store same values in the...
write in C++
Exercise#1: Is it a Prime? Write a program that prompts the user to enter a positive integer in the range [100, 100000]. If the integer is not in the specified range the program prompts the user again. The program prints whether the integer is a prime number or not. Sample input/output nter an integer in the range [10e, 10eeee]: 39 nter an integer in the range [100, 100000]: 120453 Enter an integer in the range [10e, 10e000e]:...
In C++ Exercise #2: Design and implement a programming (name it SimpleMath) that reads two floating-point numbers (say R and T) and prints out their values, sum, difference, and product on separate lines with proper labels. Comment your code properly and format the outputs following these sample runs.
In Java code Exercise #1: (Java) Design and implement a program (name it MinMaxAvg) that defines three methods as follows: Method max (int x, int y, int z) returns the maximum value of three integer values. Method min (int X, int y, int z) returns the minimum value of three integer values. Method average (int x, int y, int z) returns the average of three integer values. In the main method, test all three methods with different input value read...
Program#3(17 points): write a java program (SunDigits) as follows The main method prompts the user to enter an integer number. The method then calls Method Sum (defined blew) to add the digits and return their total. The main method then prints the digits total with proper label as shown below Method Sum )is of type integer and takes an integer value. The method recursively adds up the digits and returns their total. Document your code and use proper prompts for...