# Tutor profile: Spyros M.

## Questions

### Subject: Computer Science (General)

Need help with computer science and a Small Java Program. A program that prints all odd numbers between 67 and 95 in java

Your code is: /* This program lists any odd number between a start and end point. You may change the variables start and end.On this example, I have used as start point 67 and endpoint 95, as required by the exercise */ public class ListOddNumbers { public static void main(String[] args) { //setup the start and end points, in this example 67 and 95 int start= 67; int end= 95; //Intro message. System.out.println("Printing Odd numbers between " + start + " and " + end); // loop between start and end point for(int i = start; i <= end; i++){ //check if number is odd. Odd numbers when divided by two have remainder one if( i % 2 == 1){ //print number and a space System.out.print(i + " "); } } } } /* The output of our example using 67 as start and 95 at the end is: Printing Odd numbers between 67 and 95 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 */

### Subject: Calculus

The two functions f and g defined by f(x) = 3x + 3 for x real and g(t) = 3t + 3 for t real and positive. True or False? Please explain your answer.

False. In order to consider two functions as equals, their rules must be equals and their domains must be same. In that case, for every x that belongs to the common domain, f(x)=g(x) will be valid. In above example, rules are equals. However, domains are not same, so functions f and g are not equaled.

### Subject: Algebra

Six construction workers can build a certain type of barn in 4 days. Assuming they work at the same rate, how long would it take 12 construction works to build 10 of the same type of barns? Explain step by step how you got your answer.

Our first step is to calculate the time needed for 12 construction workers to build one barn. We know that six workers need 4 days. Also, we know that workers work at the same rate. So if we double the workers, the speed of build will be doubled as well and we cut in half the time required. So 12 workers will build one barn in 2 days. In order to find the time needed for ten barns, we will multiply the time required for one barn by ten. The final answer is 20 days. Equations: t1 = 4 days ( time needed for 6 workers for one barn) t2 = t1/2 = 4/2 = 2 days ( time needed for 12 workers for one barn) t3 = t2*10 = 2*10 = 20 days ( time needed for 12 workers for ten barns) Final Answer: t3 = 20 days

## Contact tutor

needs and Spyros will reply soon.