Anyone available to answer

We are preparing for our exam, this is a practice. Is anyone averrable that could work on part of this for me?





Your immediate supervisor came to you with an emergency. A video game developer needs a tool that converts 3-dimensional coordinates from one format to another. The job has been assigned to you.

The input for the conversions consists of a type followed by the values for the x, y, and z coordinate respectively. The conversions will be done as follows.
If type is A, add half the value of x to the value of y
If type is B, add double the value of z to the value of x
If type is C, add 33% of the value of y to the value of z.
If type is not A, B, or C, set the value of z to the average of x, y, and z.


You may use the following data to test your program:

4
A 0.0 0.1 0.2
B 0.1 0.2 0.3
C 0.3 0.4 0.5
c 2.1 2.2 3.3
What have you written so far?

What, specifically, are you having trouble with?
Topic archived. No new replies allowed.