Προς το περιεχόμενο

help JAVA


Commentator

Προτεινόμενες αναρτήσεις

Δημοσ.

Εχω αυτην την εργασια:

 

You are employed in a software house. The manager of your department assigns to you three Java programs as a test to understand your programming abilities. You need to deliver the following:

 

A CD with the source code of the programs and a report of the program.

A report of the program with the source code, plus a walkthrough (how the programs work, plus screenshots).

 

 

 

Java software programs

 

Write a program that emulates the software of a calculator.

The program creates random numbers, from 1 to 4. According to the output of the random number the program executes on of the following functions:

 

Addition

Subtraction

Multiplication

Division

 

The functions above use 3 integer numbers (x,y,z), in the division function the program must check that in the operation x+y / z, z is not equal to zero.

 

Write a program that emulates the algorithm of recursion and factorial numbers. Two numbers are randomly created the first is the number used by the functions (as an input parameter) the second is the number that the program uses to execute on of the two functions (recursion, factorial).

 

Write a program that implements powers of numbers. A random number is generated and with the use of functions its output of power 2, 4 and 8 is printed on screen.

 

 

επειδη δεν εχω καταλαβει μπορει να βοηθησει καποιος;

Δημοσ.

ok, τι δεν καταλαβες?

 

Η πρωτη γραμμη σου λεει "γραψε 3 προγραμματα"

 

το 1ο θα λειτουργει σαν κομπιοτερακι χειρος (κατι αναλογο με το calculator των windows). Δηλαδη ενα frame με ενα text edit control πανω-πανω για input-output και απο κάτω διαφορα κουμπακια για τα συμβολα (ξερεις 0,1,...9, +,-,* % και οτι αλλο έχει ενα κομπιουτερακι).

Υπαρχει μια μικρη ασαφεια οσον αφορα τη τυχαια πραξη που θα εκτελεστει, αλλα μια πρωτη ιδεα ειναι να προσθέσεις ενα επιπλεον κουμπακι που θα γραφει "ΤΥΧΑΙΟ". Ετσι αντι να πατησεις "1" "+" "2" και "=" δηλαδη να προσθεσεις το 2 στο 1, να πατησεις "1" "ΤΥΧΑΙΟ" "2" και εσωτερικα το προγραμμα θα αποφασισει τυχαια ποια πραξη θα κανει μεταξυ των 2 αριθων. Καλο θα ειναι στο αποτελεσμα να γραφεις και ποια πραξη εκτελεστηκε πχ "3 [προσθεση]"

 

χμ δεν εχω χρονο, θα επανελθω

Αρχειοθετημένο

Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.

Επισκέπτης
Αυτό το θέμα είναι πλέον κλειστό για περαιτέρω απαντήσεις.
  • Δημιουργία νέου...