Question

PLEASE DO IN PSEUDOCODE; 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 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. Sample run 2: X-coordinate is 4 Y-coordinate is 0 (4, 0) is on the x-axis. Sample run 3: X-coordinate is -2 Y-coordinate is -3 (-2,-3) is in the third quadrant. Sample run 4: X-coordinate is 6 Y-coordinate is 9 (6, 9) is in the first quadrant.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Program CheckPoint:

// Program Begins

Read X-coordinate;

Read Y-coordinate;

if(x==0 && y==0)

Print "(x,y) is Origin point"; // (printf("(%d,%d),x,y is origin point")) In C language

else if(y==0)

Print"(x,y) is on X axis ";

else if(x==0)

Print"(x,y) is on Y axis ";

else if(x>0 && y>0)

Print"(x,y) is in First Quadrant ";

else if(x<0 && y>0)

Print"(x,y) is in Second Quadrant ";

else if(x<0 && y<0)

Print"(x,y) is in Third Quadrant ";

else

Print"(x,y) is in Fourth Quadrant ";

// Program Ends.

Add a comment
Know the answer?
Add Answer to:
PLEASE DO IN PSEUDOCODE; Design and implement a program (name it CheckPoint) that prompts the user...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Using C# Exercise #3: Design and implement a program (name it CheckPoint) that prompts the user...

    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...

  • Design a Java application that prompts the user to input the x- and y-coordinates of a...

    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 THE PSEUDOCODE FOR THE PROGRAM BELOW Program 3: Design (pseudocode) and implement (source code)...

    PLEASE DO THE PSEUDOCODE FOR THE PROGRAM BELOW Program 3: Design (pseudocode) and implement (source code) a program (name it DistinctValues) to display only district values in an array. The program main method defines a single-dimensional array of size 10 elements and prompts the user to enter 10 integers to initialize the array. The main method then calls method getValues() that takes an integer array and returns another single-dimensional array containing only distinct values in the original (passed) array. Document...

  • PLEASE DO IN PSEUDOCODE ; Design and implement a programming (name it NextMeeting) to determine the...

    PLEASE DO IN PSEUDOCODE ; Design and implement a programming (name it NextMeeting) to determine the day of your next meeting from today. The program reads from the user an integer value representing today’s day (assume 0 for Sunday, 1 for Monday, 2 for Tuesday, 3 for Wednesday, etc…) and another integer value representing the number of days to the meeting day. The program determines and prints out the meeting day. Format the outputs following the sample runs below. Sample...

  • PLEASE DO THIS IN JAVA!Design (pseudocode) and implement (source code) a program (name it PhoneBill) that...

    PLEASE DO THIS IN JAVA!Design (pseudocode) and implement (source code) a program (name it PhoneBill) that calculates the bill for a cellular telephone company. The company offers two types of service: regular service and premium service. The rates vary depending on the type of service. The rates are computed as follows: Regular service: $15.00 fee covering first 50 minutes. Charges for over 50 minutes are computed at the rate of $0.50 per minute. Premium service: $25.00 fee plus: a. For...

  • In pseudocode only Design (pseudocode) a program (name it Occurrences) to determine whether two two-dimensional arrays...

    In pseudocode only Design (pseudocode) a program (name it Occurrences) to determine whether two two-dimensional arrays are equivalent or not. Two arrays are equivalent if they contain the same values in any order. The program main method defines two two-dimensional array of size 3-by-3 of type integer, and prompts the user to enter integer values to initialize the arrays. The main method calls method isEquivalent()that takes two two-dimensional arrays of integer and returns true (boolean value) if the arrays contain...

  • Design (pseudocode) and implement (source code) a program (name it IncomeTax) that reads from the user...

    Design (pseudocode) and implement (source code) a program (name it IncomeTax) that reads from the user annual income, as integer value, and calculates the income tax based on the tax table below. Income Tax bracket Annual income <= $50,000 5% $50,000 < Annual income <= $200,000 10% $200,000 < Annual income <= $400,000 15% $400,000 < Annual income <= $900,000 25% $900,000 < Annual income 35% The program output should include the entered annual income followed by the applied tax...

  • : Design (pseudocode) and implement (source code) a program (name it Circles) to determine if a...

    : Design (pseudocode) and implement (source code) a program (name it Circles) to determine if a circle is either completely inside, overlapping with, or completely outside another circler. The program asks the user to enter the center point (X1, Y1) and the radius (R1) for the first circle C1, and the center point (X2, Y2) and the radius (R2) for the second circle C2. The program then determines if the second circle C2 is either completely inside, or overlapping with,...

  • Write a program that takes the x, y coordinates of a point in the Cartesian plane...

    Write a program that takes the x, y coordinates of a point in the Cartesian plane and prints a message telling either which axis the point lies on or the quadrant in which it is found. Sample Output (-1.0, -2.5) is in quadrant 3 (0.0, -4.8) is on the y-axis IN C CODE PLEASE! (NOT C++)

  • Design in Python (pseudocode) and implement (source code) a program (name it MyRectangle) that defines the...

    Design in Python (pseudocode) and implement (source code) a program (name it MyRectangle) that defines the following 3 methods: Method isValid() returns true if the sum of the width and height is greater than 30 Method Area() returns the area of the rectangle if it is a valid rectangle Method Perimeter() returns the perimeter of the rectangle if it is a valid rectangle The main method of MyRectangle prompts the user to enter the width and height of a rectangle...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT