This program shows how to use an extra tool, which is a button in the window.  When you click on the button the program jumps to the ‘terminate’ section. You can create a jump section by giving it any name and place that section somewhere for the program to go to just like the terminate section. nomainwin UpperLeftX  = 1 UpperLeftY = 1 WindowWidth = DisplayWidth – 800 WindowHeight = DisplayHeight – 80 BackgroundColor$ = “red” ForegroundColor$ = “yellow” statictext #main.static, ” How is my window looking?” , 20,20, 600, 100 button #main.button1, “Exit”,[terminate], UR, 130, 150, 60, 40 open “Sample Window” for window as #main print #main, “font Arial 16 bold” wait [terminate] notice ” See you later” close #main ‘notice ” See you later” end Use Justbasic software Read chapter 3. Review all the documents in the weekly module before doing the assignment. Modify program 3 above to create your own program with the following modifications: a) Choose different background and foreground colors. Make sure thee text is visible. b) Create two buttons in the window instead of one.

The program provided is a basic example of using a button in a window using Justbasic software. It defines the position and size of the window, sets the background and foreground colors, and creates a static text and button within the window. When the button is clicked, the program jumps to the ‘terminate’ section and displays a message before closing the window.

To modify the program as instructed, we need to make two changes. First, we can choose different background and foreground colors to make the text more visible. Second, we need to create two buttons instead of one.

To change the background and foreground colors, we need to modify the variables BackgroundColor$ and ForegroundColor$. These variables are assigned values that represent the color of the background and foreground respectively. We can change these values to reflect our desired colors.

For example, to have a blue background and white foreground, we can modify the program as follows:

BackgroundColor$ = “blue”
ForegroundColor$ = “white”

Next, we need to create two buttons in the window instead of one. Currently, the program only creates one button using the button statement. To create a second button, we can use the same syntax and modify the positioning coordinates to ensure they do not overlap.

For example, if we want to create a second button next to the existing button, we can modify the program as follows:

button #main.button2, “Button 2”, [terminate], UR, 220, 150, 60, 40

This creates a new button named “Button 2” with the same [terminate] action when clicked. The positioning coordinates (UR, 220, 150) specify that the button should be placed to the right of the existing button.

After making these modifications, the program will have a different background and foreground color, and will display two buttons in the window instead of one.

It is important to note that the instructions do not provide any further specifications or requirements for the program. Therefore, the modifications described above are the basic changes that need to be made. Further customization or functionality can be added as desired.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer