# Programming

Watch
Announcements
#1
Hey, everyone, My name is Smith and I am doing my access course level three and I have an assignment and I'm really struggling to do it it is programming so please if anyone knows or understand the assignment please explain it to me

0
9 months ago
#2
Firstly, I am not a programmer. You are asking this question in the wrong forum.

First option needs to be to ask the user if it is a recentagle or a circle.

Next get user to input the dimensions of the pool. Lets say it is a rectangle and they enter 25, 5 and 6.
You will creates variables to store these. e.g. int length, int width, int height.

You will now do a calculation of length * width * height and the result of this will be store in a new variable int volume.

You will then do a simple output message saying "Hello user the volume of your pool is 'volume';

In psedo code

int length
int height
int width
int volume

Output "Hello user what is your name?"

Output "Please indicate if your pool is a circular pool or a rectanglur pool."
input : press 1 for circluar or 2 for rectangular.

So user then inputs all the measurements.

then you do
length * height * width = volume

you get the idea...
The hardest part of this assignment is the formula but I've already shown you how to calculate the area of a cube.
to caulate the area of a circular pool is is pi x r2 pi is 3.14 and r is radius of the pool.
so if the pool is circular you would create a variable called int pi and then you would just get the user to input the radius.

Also they want a shallow end and a deep end so you may have to add these two toegther.

Hopefully this is of some help but if not sorry for wasting your time.
Last edited by adam271; 9 months ago
0
X

new posts
Back
to top
Latest
My Feed

### Oops, nobody has postedin the last few hours.

Why not re-start the conversation?

see more

### See more of what you like onThe Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

### Poll

Join the discussion

#### Current uni students - are you thinking of dropping out of university?

Yes, I'm seriously considering dropping out (11)
18.33%
I'm not sure (2)
3.33%
No, I'm going to stick it out for now (18)
30%
I have already dropped out (3)
5%
I'm not a current university student (26)
43.33%