Hi everyone , i hope someone helps me out.
im working my way up step by step learning Java . but no one at the University is helping , they just give us the homework and we have to learn alone.and give the soltution at the end of the week. the problem is i cant make mistakes cuz if do i will not be allowed to enter the final exam at all. so its like challenging the students not teaching them...
i would be very thankful to the one who helps me out , and be sure that i will learn it carefully b4 i upload it to the classTutor. ( im studying Informationtechnology not computer science ) i only have Java as programming class in my study plz help me out .
this week we have these Questions.
1- write a java programm which calculate the Faculity of a given numbe n (n!).
2-a) write a java programm which reads a typed number and prints it out : if n neative : "input number is negative"
if n positiv : "input number is positiv" , if n = 0 : "input number is Zero"
2-b) epand your program : if input number n is positiv then : is it odd or even ? ( use if else struct inside the posivie 2-a) )
2-c) expand your program : if the input nuber is between 1 - 7 then print out the corresponding day 1 = Monday .... 7 = sunday ( use Switch construct )
3-a) write a java program that : reads 10 numbers and gives out the max . min , and the Midvalue ( use "for loop")
3-b) implement the program from 3-a) with "while loop"
3-c) implement the program from 3-a) with "do-while-loop" in this case positiv numbers are to be typed as input and as soon as the input number is negative the program will give the results (min , max , midvalue ) and stop .
4- make a java-class which solve Question 1 (n!) with for-loop . the number n is to be typed with the keyboard.