1. As a programmer you are tasked with a presentation to a group of investors to demonstrate how arrays (2D and Multi-dimensions) can be used in Real Time Systems. (20)
2. Name five tools from the JDK and explain what they are used for. Show a typical invocation for each of the four tools. (20)
3. If a VW GTi vehicle costs R. 119,995 or less, you receive a R. 1,000 discount and the finance charge is 5% per year. If the vehicle costs more, there is no discount but the finance charge is only 4% per year. In either case you have to pay off 10% of the original cost of the vehicle per year. Write a program and an application to convert between the cost of the vehicle and what you still owe exactly one year later. (10)
4. Suppose you are a software engineer working for South Africa Defense Force (SADF) , and you
have been asked to code a simple countdown timer that will be installed at new nuclear missile launch sites. Your timer should count down from 15 seconds to zero, update every 72 milliseconds, and display hundredths of a second.
4.1 Define the following class constants to specify the parameters of your timer:
o Start Time: the start time for your timer, set as 10,000 milliseconds.
o Unit Time: the time interval between each update, set as 72 milliseconds. (20)
4.2 Create a GLabel with font Segoe UI to display how much time is left on your timer, which can appear anywhere on the console window as long as all the digits are clearly visible. If 05:09 milliseconds are left, your timer should read 5:09 as shown above instead of 05: 09.
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!
If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
Hello, i'm new to Java and i'm trying to learn the basics. Problem is i want to make this buttons top to bottom, Tried some but kinda confused here. Please help
Here is my code
JPanel mainPannel = new JPanel();
JButton jbt1 = new JButton("Шинээр үүсгэх");
JButton jbt2 = new JButton("Хугацаа сунгах");
JButton jbt3 = new JButton("Данс хаах");
JButton jbt4 = new JButton("Архив");
JButton jbt5 = new JButton("Прогрaмыг хаах");
mainPannel.setBorder(new TitledBorder("Үндсэн Цэс"));
//Create font and a line border
Font largeFont = new Font("ArialMon", Font.BOLD, 20);
Border lineBorder = new LineBorder(Color.BLACK, 2);
//Add panel to mainFrame
JPanel listPane = new JPanel();
listPane.setLayout(new BoxLayout(listPane, BoxLayout.Y_AXIS));
I know how to do a JButton, but the thing is, I don't want that to say Play, Quit, etc.. I want to customise it, like say in Minecraft, where the Singleplayer button is on a stone; or in Papers, please, the button for Story Mode is underlined with dots. You know what I mean.
I've tried searching around the internet, but all they show is the JButton code, not how to customise.