View Full Version : سوال: یه سری پروژه نیاز دارم
M0TR!X
جمعه 30 دی 1390, 05:22 صبح
سلام.
همانطور که خودتون میدونید برای پیشرفت توی یه زبانی بهترین کار تعریف پروژه و کار روی اونه !
راستش من هرچقدر فکر کردم چیزی به ذهنم نرسید گفتم شما یه زحمت بکشید ! از کوچکتریم و سادترین پرروژه گرفته تا سخترین پروژه رو تعریف کنید واسه من ! تا من شروع کنم.
هر چه قدر تعداد پروژه ها زیاد باشه.عالی میشه.
ممنون
halghe106
پنج شنبه 13 بهمن 1390, 11:45 صبح
این ها تمرین های سری یک درس جاواست...
خواستی بگو تا جاوا 2 و 3 هم داریم :چشمک:
1. Convert the following binary numbers to decimal:
0000 1000
0000 1001
0000 0111
0100 0001
0111 1111
0110 0001
2. Convert the following decimal numbers to binary, writing them as 8-bit binary numbers. You
may pad with 0’s on the left hand side to make up 8 bits when necessary:
3
63
15
64
16
255
3. Convert the decimal numbers -64,-127,-15,-16,-1,+32 and +8 to 8-bit signed magnitude and two’s
complement numbers.
4. What is the range of unsigned numbers that can be represented by 20-bit, 24-bit and 32-bit
numbers?
5 What is the range of numbers that can be represented using 32-bit two’s complement numbers?
6. What problem arises in representing zero in signed magnitude and one's complement?
7. What is overflow and how might it occur?
8. Draw the Memory Hierarchy sorted by capacity and speed. Where and why memory cache is used?
9. Assume that we have a 8-bit adder. Design a circuit to subtract two positive 7-bit numbers using this
adder and the 2'complement representation.
10. Describe in details the tasks that an Operating System does.
11. What the term “bandwidth” means? Compare bandwidth of different connection media.
12. List the steps of loading a web page on your computer. What tools (hardware/software) are used in
doing this task.
M0TR!X
پنج شنبه 13 بهمن 1390, 18:16 عصر
سلام.
هر چی داری رو کن :D
مرسی
halghe106
جمعه 14 بهمن 1390, 10:02 صبح
باشه!
این ها تمرین های جاوا خود هستن..پس اگه خواستی جوابشون هم هست...
تمرین سری دو :
1. Write an application that prompts the user to enter the size of the side of a square, then displays
a hollow square of that size made of asterisks. Your program should work for squares of all side
lengths between 1 and 20.
2. (Palindromes) A palindrome is a sequence of characters that reads the same backward as
forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555,
45554 and 11611. Write an application that reads in a five-digit integer and determines whether
it is a palindrome. If the number is not five digits long, display an error message and allow the
user to enter a new value.
3. Write an application that inputs an integer containing only 0s and 1s (i.e., a binary integer) and
prints its decimal equivalent. [Hint: Use the remainder and division operators to pick off the
binary number’s digits one at a time, from right to left. In the decimal number system, the
rightmost digit has a positional value of 1 and the next digit to the left has a positional value of
10, then 100, then 1000, and so on. The decimal number 234 can be interpreted as 4 * 1 + 3 *
10 + 2 * 100. In the binary number system, the rightmost digit has a positional value of 1, the
next digit to the left has a positional value of 2, then 4, then 8, and so on. The decimal
equivalent of binary 1101 is 1*1 + 0 * 2 + 1 * 4 + 1 * 8, or 1 + 0 + 4 + 8 or, 13.]
4. Write an application that uses only the output statements
System.out.print( "*" );
System.out.print( " " );
System.out.println();
to display the diagram of a function y=ax^3 + bx^2 + cx + d for range x in[-20..20]. The
constant coefficients (a, b, c, and d) are entered by the user. [Hint: Repetitionstatements are
required.]
5. Write an application that reads three nonzero values entered by the user and determines and
prints whether they could represent the sides of a triangle.
6. Write an application that reads three nonzero integers and determines and prints whether they
could represent the sides of a right triangle.
7. A company wants to transmit data over the telephone but is concerned that its phones may be
tapped. It has asked you to write a program that will encrypt the data so that it may be
transmitted more securely. All the data is transmitted as four-digit integers. Your application
should read a four-digit integer entered by the user and encrypt it as follows: Replace each digit
with the result of adding 7 to the digit and getting the remainder after dividing the new value by
10. Then swap the first digit with the third, and swap the second digit with the fourth. Then
print the encrypted integer. Write a separate application that inputs an encrypted four-digit
integer and decrypts it to form the original number.
8. The factorial of a nonnegative integer n is written as n! (pronounced “n factorial”) and is
defined as follows:
n! = n · (n – 1) · (n – 2) · ... · 1 (for values of n greater than or equal to 1)
and
n! = 1 (for n = 0)
For example, 5! = 5 · 4 · 3 · 2 · 1, which is 120.
a) Write an application that reads a nonnegative integer and computes and prints its factorial.
b) Write an application that estimates the value of the mathematical constant e by using the
formula e = 1 +1/1! + 1/2! + 1/3! + ...
c) Write an application that computes the value of e^x by using the formula
e^x = 1 + x/1! + x^2/2! + x^3/3! + ...
همه رو یک جا نذارم بهتره! :چشمک:
این ها رو نوشتی بگو بریم سری 3 و 4...
vBulletin® v4.2.5, Copyright ©2000-1404, Jelsoft Enterprises Ltd.