Dollars BBS | Technology

feed-icon

Main

News

Animation

Art

Comics

Films

Food

Games

Literature

Music

Personal

Sports

Technology

Random

Is there any programmers here that can solve my Problem? (28)

1 Name: Mizikashi : 2013-11-16 02:53 ID:U++BYR19 [Del]

The programming language is Java Application here is the problem..for fun. :) just comment the codes below thanks :)

Create a program that the user display the following process below: (All text/message that has parenthesis. It means comment)
Assume that once the program started. Battery consumption is 20 charge level then 0 for Load. And then maximum of Battery charge and Load is 20 only.
LOAD TRANSACTION (display)
[1] - Text
[2] - Missed Call
[3] - Call
[4] - Reload
[5] - Recharge
[6] - Balance Inquiry
[7] - Back to Menu
[8] - Exit
Enter MODE: 1 (user inputted)
Sorry! You don't have enough balance. Pls reload.
Enter MODE: 7 (user inputted)
LOAD TRANSACTION (display)
[1] - Text
[2] - Missed Call
[3] - Call
[4] - Reload
[5] - Recharge
[6] - Balance Inquiry
[7] - Back to Menu
[8] - Exit
Enter MODE: 5 (user inputted)
Battery Full! (output)
Enter MODE: 4 (user inputted)
Reload... (output, load = 5)
Enter MODE: 4 (user inputted)
Reload... (output, load = 5 + 5 = 10)
Enter MODE: 4 (user inputted)
Reload... (output, load = 5 + 5 + 5 = 15)
Enter MODE: 4 (user inputted)
Reload... (output, load = 5 + 5 + 5 + 5 = 20)
Enter MODE: 4 (user inputted)
Maximum of 20 Load only! (output, load > 20, which is invalid.)
Enter MODE: 6 (user inputted)
Battery - 20
Load - 20
Enter MODE: 1 (user inputted)
Texting... (output, it will less 1 for load and battery)
Enter MODE: 3 (user inputted)
Calling... (output, it will less 5 for load and battery)
Enter MODE: 3 (user inputted)
Calling... (output, it will less 5 for load and battery)
Enter MODE: 3 (user inputted)
Calling... (output, it will less 5 for load and battery)
Enter MODE: 3 (user inputted)
Sorry! You don't have enough balance. Pls reload.
Battery empty! Pls recharge. (output. Because it will less another 5 again but the battery and load is not enough.)
Enter MODE: 6 (user inputted)
Battery - 4
Load - 4
Enter MODE: 8 (user inputted)
THANK YOU!
(exit)

CONDITIONS:
Text - less 1 (-1)
Missed Call - less 3 (-3)
Call - less 5 (-5)
Reload - plus 5 (+5) and not more than or greater than to 20.
Recharge - plus 5 (+5) and not more than or greater than to 20.

2 Name: Sleepology !4a6Vun8zuw : 2013-11-17 00:03 ID:UaFI9qWX [Del]

We aren't doing your homework for you.

3 Name: Inuhakka !.5xqXJfr96 : 2013-11-17 10:47 ID:r0Mey2SL [Del]

If! IIIIFFFF!

Or recursion.

4 Name: red !YY8ebcAR4s : 2013-11-22 20:13 ID:EBlVHSW9 [Del]

>>2
>> We are not doing Java for you.
Fixed.

5 Name: Misuto!M4ZBq07Cs. : 2013-11-25 20:26 ID:ob83s1n+ [Del]

Oh come on, none of you even gave advice? OP probably doesn't need it anymore since this was like a week ago, but it's not like they said to do it for them. There are ways to answer without copping out.

6 Name: Inuhakka !.5xqXJfr96 : 2013-11-26 15:14 ID:nZltccpZ [Del]

>>5 I did try. To be honest this is a bit above my level of knowledge. All I can see is a lot of if statements for a lot of different inputs. You could probably use recursion to make it nice and clean but I don't know how.

7 Name: KIKLOL : 2013-11-27 22:18 ID:HW7/LdQi [Del]

dont know but your mum solved mine

8 Name: Inuhakka !jpLcpJ5sKg : 2013-11-27 22:19 ID:HW7/LdQi [Del]

You're an idiot Kaelib

9 Name: KIKLOL : 2013-11-27 22:20 ID:HW7/LdQi [Del]

wrong you fucked up you sounded like a fag

10 Name: KaelibIsACockHead : 2013-11-27 22:20 ID:HW7/LdQi [Del]

Use caps bro...

11 Post deleted by user.

12 Post deleted by user.

13 Name: miss-loki-look : 2013-11-27 22:22 ID:HW7/LdQi [Del]

oh god

14 Name: KaelibIsACockHead : 2013-11-27 22:23 ID:HW7/LdQi [Del]

Feck off Brittany

15 Name: KIKLOL : 2013-11-27 22:23 ID:HW7/LdQi [Del]

your mums a god

16 Name: KIKLOL : 2013-11-27 22:23 ID:HW7/LdQi [Del]

brittany

17 Name: KaelibIsACockHead : 2013-11-27 22:23 ID:HW7/LdQi [Del]

USE CAPS!

18 Name: Hana Maru : 2013-11-27 22:23 ID:HW7/LdQi [Del]

Still think it's funny htat the four of us are arguing while we are sitting next to eachother xD

19 Name: miss-loki-look : 2013-11-27 22:24 ID:HW7/LdQi [Del]

tecnicaly if im "miss loki" then my mmother must be a god since loki is a god

20 Name: miss-loki-look : 2013-11-27 22:24 ID:HW7/LdQi [Del]

tecnicaly if im "miss loki" then my mmother must be a god since loki is a god

21 Name: KaelibIsACockHead : 2013-11-27 22:24 ID:HW7/LdQi [Del]

That*

22 Name: miss-loki-look : 2013-11-27 22:26 ID:HW7/LdQi [Del]

the hell are we even doing

23 Name: KIKLOL : 2013-11-27 22:38 ID:HW7/LdQi [Del]

dont know dont care, but again loki mum is a god

24 Name: KIKLOL : 2013-11-27 22:38 ID:HW7/LdQi [Del]

her tits are the size of earth

25 Name: miss-loki-look : 2013-11-27 22:40 ID:HW7/LdQi [Del]

you just insulted the god of fire and sex...

26 Name: Inuhakka !.5xqXJfr96 : 2013-11-27 23:34 ID:YedwwHYn [Del]

...::...

27 Name: Inuhakka !.5xqXJfr96 : 2013-11-27 23:34 ID:YedwwHYn [Del]

...::...

28 Name: Inuhakka !.5xqXJfr96 : 2013-11-27 23:34 ID:YedwwHYn [Del]

...::...