Application for a mid , Programming Languages

Assignment Help:

The assignment has two parts: first you generate a simple application for a MID that operates independently of other MIDs. As a second part, the application is extended to keep some history of its activity and to interact with a web site.

For both parts, submit a listing of the program and a short description of the design in the standard submission box outside the Student Office 1.24. You should also demonstrate your code to me at a subsequent lab session. Write a simple midlet that generates random arithmetic problems for the user and records the time that it takes to answer 10 correctly.

First Part

The problems should use single digit numbers, and the operations + - or *. When a problem is answered, whether correctly or incorrectly, a new problem is produced. The midlet should indicate how many problems remain to be solved correctly. The time should be recorded to the nearest millisecond.

Second Part

Extend your MIDlet from part 1 to include the recording of the fastest
time achieved so far. This should be stored so that even if the MIDlet exits, the time is not lost.

Further extend the MIDlet so that whenever a previous best time is exceeded, the MID contacts the web page and updates the global list of fastest times. In order to do this, the page should be access with a GET specifying a nickname and the time. The nickname should have no spaces. Since there is no way of checking whether a nickname is taken --- use your login. The time should be given in milliseconds.

The page will respond with your position in the global list of all fastest times!


Related Discussions:- Application for a mid

Write your own version of the strcmp function string_compare, Write your ow...

Write your own version of the strcmp function string_compare. Supply a main program that will test each of the 3 differing outcomes. int string_compare(char *s, cha

Hb programming test, The purpose of the HB Programming test is to assess wh...

The purpose of the HB Programming test is to assess whether a candidate has sufficient knowledge to join our team here and beyond that where they would fit within our teams. The

Loops, I have doubt in this section .do-while loop.could you able to clear ...

I have doubt in this section .do-while loop.could you able to clear it for me.

Write a document type definition for xml file, XML Publishing. Consider the...

XML Publishing. Consider the following relational data: Products: pid Name Price Description 323 gizmo

Shell script delete all lines from file contains word mca, Normal 0 ...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Write a program to read the file, Suppose you have a ?le orase of city and ...

Suppose you have a ?le orase of city and country names, like this: Cluj, Romania Debrecen, Hungary Klagenfurt, Austria Berlin, Germany Szeged, Hungary Budapest, Hungary Lintz, A

Prims algorithm for minimum spanning tree, Implement the Prim's algorithm w...

Implement the Prim's algorithm with array data structure as described in slide 12 of the file 04mst.ppt. Your program should have a runtime complexity of O(n2) and should be as eff

Shell script to find a particular pattern from the file, Normal 0 ...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Develop a context diagram and use case diagram, Develop (i) a context diagr...

Develop (i) a context diagram and (ii) a use case diagram to model the following functionalities of NetFlix. Netflix is an online video/DVD renting company. A customer desiring

Shell script to check a given string is palindrome or not, Normal 0 ...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd