1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Schach [20]
3 years ago
13

PROBLEM 2: Classifying a Cartesian Data Point (30 points)

Computers and Technology
1 answer:
Aleksandr [31]3 years ago
8 0

Answer: Classifying Cartesian Data Point (30 points) Write program t0 prompt the user to enter value ior variable and a value for a variable y_ The values for variables and correspond to point P = (x, y) located in the Cartesian plane (l.e- the Rectangular x-y plane). Using combination of conditional if statements and the built-in fprintf function, the program should display one of the following messages according to the value of x and y. Format the display of the coordinates as fixed-point numbers showing maximum of 2 digits after the decimal point: Point (xVal, YVal) is located on the origin_ Point (xVal, YVal) is located on the x-axis Point (xVal, YVal) is located on the y-axis. Point (xVal, YVal) is located in quadrant Point (xVal, YVal) is located in quadrant II. Point (xVal, YVal) is located in quadrant III . Point (xVal, yVal) is located in quadrant IV . Then the program displays how far (i.e. distance) point (x, Y) is from the origin: Format the display of the distance as real number showing 3 digits after the decimal point: Test your script for all possible locations of (x, y) Some sample executions of the script are shown below FIRSTNAME LASTNAME LAB7 problem2 Enter value fOr Ene coordinate: Enter value f0r Lhe coordinate: Point 20 , 90) loca Led in quadrant Point (3.20, 90) is 3.722 units away from che origin. FIRSTNAME LASTNAME LAB7 problem2 Enter value f0r Lhe coordinate: Enter value for Ehe coordinate Point (-3.20 90) 15 located in quadrant II _ Point (-3.20 , 90) 3.722 units away from the origin. FIRSTNAME_LASTNAME_LAB7 problemz Enter value for Lhe coordinate: Enter value for Lhe coordinate Point 8 0 ) located che y-axis Point (0.00, -3.80) 800 units away Tom the origin.

Explanation:

You might be interested in
Computer Works is a computer accessories manufacturer based in Brazil. All customers in South America pay the same freight charg
arsen [322]

Answer: Zone

Explanation:

  The zone pricing is refers to the process which establishing a price for the various types of services and products that relying upon where individuals get them.

In the zone pricing process event, if a customer purchases something from the zone A and, at that point something very similar in Zone B, then they need to pay various costs.  

An organization and company need to  use the zone pricing for paying the cost for the transportation. it is also used in organization for the pricing strategies.

4 0
4 years ago
In the context of computer crimes, those who attempt to destroy the infrastructure components of governments and financial insti
elixir [45]

In the context of computer crimes, those who attempt to destroy the infrastructure components of governments and financial institutions are known as <u>d. cyber terrorists</u>.

<u>Explanation</u>:

Cyber crime means crime committed with the help of computer and internet. Cyber terrorism means crime that causes damage to infrastructure components of financial institutions and government office and causes threat to the society.

Cyber terrorists are person who involve in cyber terrorism. The systems used in the governments and financial institutions should be protected with hardware and software to avoid cyber terrorism.

This kind of cyber terrorism is very dangerous, as they hack the system and destroy the valuable information stored in it.

5 0
3 years ago
_____ allows a function or operator to perform different tasks depending on the types of the arguments or operands. Group of ans
xenn [34]

Polymorphism allows a function or operator to perform different tasks depending on the types of the arguments or operands.

<h3>What does polymorphism helps?</h3>

Polymorphism is known to be that which helps its users to be able to carry out one action in a lot of ways that is many forms.

Note that Polymorphism allows a function or operator to perform different tasks depending on the types of the arguments or operands and thus makes one to work faster.

Learn more about Polymorphism from

brainly.com/question/20317264

#SJ1

5 0
2 years ago
Karel coding 2.1.4 superkarel cleanup
kherson [118]

Answer:

hi, try using Code Plans

Explanation:

it is a free website that include videos and articles on this stuff

6 0
3 years ago
Read 2 more answers
A customer in a store is purchasing 5 items. Write a python program that asks for the price of each item and display the subtota
alex41 [277]

Answer:

total = 0

for i in range(5):

 product = float(input())

 tax = product * 0.07

 print('Product price:',product)

 print('Product tax:',tax)

 print('----------------------')

 total += product+tax

print('Total:',total)

Explanation:

Step 1 variables definition

total = 0

Step 2 loop over quantity of products

for i in range(5):

Step 3 ask for price and calculate the tax

product = float(input())

tax = product * 0.07

Step 4 print the product total

 print('Product price:',product)

 print('Product tax:',tax)

 print('----------------------')

Step 5 print the general total

print('Total:',total)

6 0
3 years ago
Other questions:
  • The rule of thumb in the wireless industry is that a smartphone uses 4 gigabytes of data per month where ____ percent travels th
    14·2 answers
  • Olivia has developed a great presentation with a distinct purpose and excellent content. She delivered it in a workshop and got
    9·1 answer
  • Can anyone help me with getting bash ubuntu on windows setup?
    15·1 answer
  • write a program that reads in the length and the width of a rectangular yard . your program should compute the time required ( i
    5·1 answer
  • You are asked to add speech to a robotic receptionist that sits at the front desk of a large organization. The robot has an anim
    10·2 answers
  • An object is suspended in a wind tunnel and the force measured for various levels of wind velocity: v (m/s) 10 20 30 40 50 60 70
    10·1 answer
  • What are two example of ways an electronic record may be distributed to others?
    11·1 answer
  • Which of the following processes demonstrates that matter is made up of minute particles? (A) Difussion (B) Capillarity (C) Dist
    15·1 answer
  • yo guys go sub to my channel road to i guess 20 or 30 my yt channel is called The Golden StreamerYT i have 16 subs we are almost
    10·2 answers
  • In 2008, researchers at Princeton University demonstrated techniques to retrieve RAM contents after the computer had been powere
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!