Convert the following decimal numbers to IEEE single-precision format. Give the results as eight hexadecimal digits.
a. 10
b. 5/6
c. -10/15
d. 0.75
Create two buttons with button text "Button-1" and "Button-2" and put them in a frame using FlowLayout. Use pack () method to discard any whitespaces while putting those buttons in the frame. When you click on the "Button-1" it should display a message ("You clicked Button-1") in a popup window and when you click on the "Button-2" it should display a message ("You clicked Button-2")
Suppose you are given a Customer’s list registered as executive members in a storeand you are required to implement an array-based Customerlist. Each Customerin the list hasname, customerID, Contactand membership Category (category can be regular and VIP). Implement different functionsfor entering the data (likeconstructor (for setting to default values),setName, setId, etc.). You also need to implement the following function related to the array.insertCustomer(): It has 2 options•Asking the user for indexand then insert the Customerat that indexAND•Asking the user for the ID of the customerwhere the new Customeris to be added (New Customershould be added at the index of the CustomerwhoseIDis entered)oIf the list is full,it should create a larger list (new size should be entered by the user), copy all the data in it and make insertion as instructedoInsertion will only be made if the IDof the new Customerdoesn’t exist in the listdeleteCustomer()
Write a Linux shell script that performs the following tasks:
a. Provide a mystery integer between 1 to 10.
b. Using “while” loop, allow the user to guess the random number until the user
got it right.
c. If the user’s entered number is lower or greater than the random number,
notify the user to guess higher or lower respectively.
d. If the user enters any number out of the 1 to 10 range, notify the user to
enter in the correct number range.
e. Display a congratulatory message along with the random number if the user
guessed it correctly.
Which of the following is not keyword in java ?
Select one:
a. import
b. package
c. volatile
d. null
What is the output of this program?
Select one:
a. 2 3 4
b. 3 2 4
c. 3 4 4
d. 3 2 3
What is the output of the following program
class TestApp {
public static void main(String[] args) {
for (int index = 0; 1; index++) {
System.out.println("Welcome");
break;
}
}
}
Select one:
A. Welcome
B. Type mismatch error
C. Run infinite-times
D. Welcome Welcome
What is the output of this program?
Select one:
a. 1 3 5 7 9
b. 1 3 5 7
c. 1 2 3 4 5 6 7 8 9
d. 2 4 6 8
Create an Address class, which contains street#, house#, city and code (all of type char*).
Create another class Person that contains an address of type Address. Give appropriate get
and set functions for both classes. Test class person in main.
Create a counter class, overload ++ operator for counter post and pre increment, use the
object of counter class as a loop counter for printing a table in main function.