السلام عليكم ورحمة الله وبركاته ..
أتمنى منكم مساعدتي في حل هذا الأسئلة في برنامج الجافا , وأكون مُمتّن لكم :happy:
. Write a program that reads in two integers typed on the keyboard and outputs their sum, difference, and product
-----------------------------------
An automobile is used for commuting purposes. Write a program that takes as input the distance of the commute in miles, the automobile’s fuel consumption rate in miles per gallon, and the price of a gallon of gas. The program should then output the cost of the commute.
--------------------
. the straight-line method for computing the yearly depreciation in value D for an item is given by the formula
d=(p-s)/y
Where P is the purchase price,
S is the salvage value,
and Y is the number of years the item is used.
Write a program that takes as input the purchase price of an item, the expected number of years of service, and the expected salvage value. The program should then output the yearly depreciation for the item.
--------------------
Write a program that reads in a line of text and then outputs that line of text first in all uppercase letters and then in all lowercase letters
--------------------
Writ a program that determines the change to be dispensed from a vending machine . An item in the machine can cost between 25 cents and a dollar,in 5-cent increments (25,30,35,...90,95 or 100), and the machine accepts only a single dollar bill to pay for the item. I would like the dialog to read: Enter The Price of The Item.
(from 25 cents to a dollar , in 5-cent increments )
45
You bought an item for 45 cents and gave me a dollar,
so your change is
2 quarters
0 dimes, and
1 nickels
معليش إذا هذا مو مكان أسئلتي بس لسى أنا جديد هنا ..
والله يوفق الجميع .
