1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Zarrin [17]
3 years ago
11

The first few lines of a script that say "using" ... that point the code to the right groups are called

Computers and Technology
1 answer:
Ugo [173]3 years ago
5 0
<h2>Answer :</h2>

Using in case of programming script is used to include pre-defined and pre-compiled files that have functions and logic writer that can be re-used in the new program. This saves developer time to re-write the function, which on the contrary can use the same function calls to perform the task. This area is known as Preprocessor Directive

You might be interested in
CAD workstations
olya-2409 [2.1K]

Answer:

Explanation:

The answer should be A. Because CAD is an Architecture/Design program.

3 0
3 years ago
Write a Java program that generates GUI (Graphical User Interface). Your program should provide labels and textfields to a user
Alla [95]

Answer:

import javafx.application.Application;

import javafx.stage.Stage;

import javafx.scene.Scene;

import javafx.scene.control.Tab;

import javafx.scene.control.TabPane;

import javafx.scene.layout.StackPane;

import java.util.ArrayList;

public class Assignment6 extends Application {

private TabPane tabPane;

private CreatePane createPane;

private SelectPane selectPane;

private ArrayList<Club> clubList;

public void start(Stage stage) {

StackPane root = new StackPane();

//clubList to be used in both createPane & selectPane

clubList = new ArrayList<Club>();

selectPane = new SelectPane(clubList);

createPane = new CreatePane(clubList, selectPane);

tabPane = new TabPane();

Tab tab1 = new Tab();

tab1.setText("Club Creation");

tab1.setContent(createPane);

Tab tab2 = new Tab();

tab2.setText("Club Selection");

tab2.setContent(selectPane);

tabPane.getSelectionModel().select(0);

tabPane.getTabs().addAll(tab1, tab2);

root.getChildren().add(tabPane);

Scene scene = new Scene(root, 900, 400);

stage.setTitle("Club Selection Apps");

stage.setScene(scene);

stage.show();

}

public static void main(String[] args)

{

launch(args);

}

}

import java.util.ArrayList;

import javafx.scene.layout.HBox;

import javafx.event.ActionEvent; //**Need to import

import javafx.event.EventHandler; //**Need to import

public class CreatePane extends HBox {

ArrayList<Club> clubList;

private SelectPane selectPane;

//constructor

public CreatePane(ArrayList<Club> list, SelectPane sePane) {

this.clubList = list;

this.selectPane = sePane;

}

//using the toString method of the Club class.

//It also does error checking in case any of the textfields are empty,

//or a non-numeric value was entered for its number of members

private class ButtonHandler implements EventHandler<ActionEvent> {

//Override the abstact method handle()

public void handle(ActionEvent event) {

//declare any necessary local variables here

//---

//when a text field is empty and the button is pushed

//if ( //---- )

//{

//handle the case here

//}

//else //for all other cases

//{

//when a non-numeric value was entered for its number of

members

//and the button is pushed

//you will need to use try & catch block to catch

//the NumberFormatException

//When a club of an existing club name in the list

//was attempted to be added, do not add it to the list

//and display a message "Club not added - duplicate"

//at the end, don't forget to update the new arrayList

//information on the SelectPanel

//}

} //end of handle() method

} //end of ButtonHandler class

}

import javafx.scene.control.Label;

import javafx.scene.control.CheckBox;

import javafx.scene.layout.*;

import javafx.event.ActionEvent; //**Need to import

import javafx.event.EventHandler; //**Need to import

import java.util.ArrayList;

import javafx.collections.ObservableList;

import javafx.scene.Node;

//import all other necessary javafx classes here

public class SelectPane extends BorderPane {

private ArrayList<Club> clubList;

//constructor

public SelectPane(ArrayList<Club> list) {

//initialize instance variables

this.clubList = list;

//set up the layout

//create an empty pane where you can add check boxes later

//SelectPane is a BorderPane - add the components here

} //end of constructor

//This method uses the newly added parameter Club object

//to create a CheckBox and add it to a pane created in the constructor

//Such check box needs to be linked to its handler class

public void updateClubList(Club newClub)

{

//-------

}

//create a SelectionHandler class

private class SelectionHandler implements EventHandler<ActionEvent> {

//Override the abstact method handle()

public void handle(ActionEvent event){

//When any radio button is selected or unselected

//the total number of members of selected clubs should be updated

//and displayed using a label.

}

} //end of SelectHandler class

} //end of SelectPane class

public class Club {

private String clubName;

private int numberOfMembers;

private String university;

//Constructor to initialize all member variables

public Club() {

clubName = "?";

university = "?";

numberOfMembers = 0;

}

//Accessor method for club name

public String getClubName() {

return clubName;

}

//Accessor method for university

public String getUniversity() {

return university;

}

//Accessor method for number of members

public int getNumberOfMembers() {

return numberOfMembers;

}

//mutator/modifider method for club name

public void setClubName(String someClubName) {

clubName = someClubName;

}

//mutator/modifider method for university

public void setUniversity(String someUniversity) {

university = someUniversity;

}

//mutator/modifider method for number of members

public void setNumberOfMembers(int someNumber) {

numberOfMembers = someNumber;

}

//toString() method returns a string containg its name, number of members, and

university

public String toString() {

String result = "\nClub Name:\t\t" + clubName

+ "\nNumber Of Members:\t" + numberOfMembers

+ "\nUniversity:\t\t" + university

+ "\n\n";

return result;

}

}

Explanation:

4 0
3 years ago
Lenovo's ThinkPad laptop computers is designed in the United States, the case, keyboard, and hard drive are made in Thailand; th
PSYCHO15rus [73]

Answer:

b. A global web of value creation activities

Explanation:

Multinational companies can benefit from creating a global network of value creation activities. With this strategy various phases of the value chain are distributed in several global locations where the cost of value creation is greatly reduced and value maximized. In this scenario Lenovo strategically chooses locations for the manufacturing of components for their ThinkPad laptops, while factoring costs involved and ensuring they are at a minimum. As with any strategy, it has its limitations that can reduce effectiveness such as trade barriers and other political risks.

5 0
3 years ago
Advertising is organized around four distinct groups. The _____ group includes the photographers, the illustrators, video produc
borishaifa [10]

Answer:

Suppliers

Explanation:

There are <em>FOUR </em>distinct groups of Advertising namely:

  • The Advertisers
  • The Advertising Agencies
  • The Suppliers
  • Media

1.The Advertisers : clients

2.The Advertising Agencies: The companies that prepare promotional

   materials.

3.The Suppliers: Includes photographers, graphic designers, video recording

   specialists.

4.Media: launches the promotional/advertising campaigns in pursuit to reach

   the target audience.

4 0
3 years ago
which of the following is a component of a rope-rewind starter system? a. a recoil spring c. an air vane governor b. a wrist pin
Zinaida [17]
"Recoil spring" is the one among the following choices given in the question that is <span>a component of a rope-rewind starter system. The correct option among all the options that are given in the question is the first option or option "a". I hope that this is the answer that has come to your desired help.</span>
3 0
3 years ago
Other questions:
  • Don is the superintendent of the county school system. What task might Don
    8·1 answer
  • What is the difference between a denial-of-service attack and a distributed denial-of-service attacks? which is potentially more
    10·1 answer
  • There are n tasks to complete. Each task first needs to be preprocessed on a supercomputer and then finished on one of n process
    12·1 answer
  • Manuel is working on a project in Visual Studio. He wants to keep this program showing on the entire desktop, but he also needs
    7·1 answer
  • In the space below, write the formula that needs to be added to the blank cells under the fourth column of the table.
    13·1 answer
  • I’m nobody. Who are you?
    9·2 answers
  • Alexi is writing a program which prompts users to enter their age. Which function should she use?
    6·2 answers
  • Always follow the routine "clean up while in use and clean up before keeping it".
    6·1 answer
  • I need help <br> with a question<br> what can i write for ex when he mad
    13·2 answers
  • Which activity is the best example of a negative habit that may result from
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!