There is a variable, state_capitals, that refers to a dictionary that maps U.S. states to their capitals, and another dictionary, provincial_capitals, that maps Canadian provinces to their capitals. Associate a dictionary that maps states or provinces to their respective capitals with a variable, regional_capitals.
Explanation:
The below code is done in python.
{provincial_capitals.keys} + (state_capitals.keys) == regional_capitals
regional_capitals = {}
regional_capitals.update(state_capitals)
regional_capitals.update(provincial_capitals)
80 sketches will be required. It’s just multiplication. Let x=boys and y=girls. If x=8 and y=10, then one boy has to be with one girl. In total 1 boy will be with 10 girls, so that’s 10 sketches. You do the same for boy #2 and so on. It adds up to 80.
Answer:
Explanation:
public class Main
{
public static void main(String[] args) {
System.out.println("Test Class:");
Name name = new Name("Dayanand","Ghelaro");
System.out.println("First Name : "+name.getFirstName());
System.out.println("Last Name : "+name.getLastName());
}
}
class Name{
private String firstName; // first name field
private String lastName; // last name field
public Name(String firstName, String lastName){
this.firstName = firstName;
this.lastName = lastName;
}// end of constructor
public String getFirstName(){
return this.firstName;
} // end of method
public String getLastName(){
return this.lastName;
}// end of method
}// end of Name class