Using Bluej software and making use of different datatypes, create an admission/enquiry form wherethe user can enter his/her following basic detail:● FirstName● LastName● DOB● Contact No.● E-mail● Address● City/Town(2) Using Bluej software create a pattern using special characters which gives the output as a number oran alphabet (any).(3) If you have a Laptop/PC : Create Task (1) and (2) in Bluej software and take a screenshot of coding aswell as of output and create a single PDF of it.If you do not have a Laptop/PC : Write coding for Task (1) and (2) in A4 size paper and draw its outputand scan all pages to create a single PDF.(Learning is not confined to Classroom and Textbooks. The Internet is a powerful tool. Use this tool toenhance your knowledge and skills which may then be used in this activity.)
Question
Using Bluej software and making use of different datatypes, create an admission/enquiry form wherethe user can enter his/her following basic detail:● FirstName● LastName● DOB● Contact No.● E-mail● Address● City/Town(2) Using Bluej software create a pattern using special characters which gives the output as a number oran alphabet (any).(3) If you have a Laptop/PC : Create Task (1) and (2) in Bluej software and take a screenshot of coding aswell as of output and create a single PDF of it.If you do not have a Laptop/PC : Write coding for Task (1) and (2) in A4 size paper and draw its outputand scan all pages to create a single PDF.(Learning is not confined to Classroom and Textbooks. The Internet is a powerful tool. Use this tool toenhance your knowledge and skills which may then be used in this activity.)
Solution
Claro, aquí tienes los pasos detallados para completar las tareas mencionadas:
Tarea 1: Crear un formulario de admisión/consulta
-
Abrir BlueJ: Inicia el software BlueJ en tu computadora.
-
Crear un nuevo proyecto: Ve a
Project>New Project...y nombra tu proyecto, por ejemplo, "AdmissionForm". -
Crear una nueva clase: Haz clic derecho en el área de trabajo y selecciona
New Class.... Nombra la clase, por ejemplo, "AdmissionForm". -
Definir la clase: Abre la clase recién creada y define los atributos necesarios para almacenar los detalles del usuario.
public class AdmissionForm {
private String firstName;
private String lastName;
private String dob;
private String contactNo;
private String email;
private String address;
private String cityTown;
// Constructor
public AdmissionForm(String firstName, String lastName, String dob, String contactNo, String email, String address, String cityTown) {
this.firstName = firstName;
this.lastName = lastName;
this.dob = dob;
this.contactNo = contactNo;
this.email = email;
this.address = address;
this.cityTown = cityTown;
}
// Métodos para mostrar la información
public void displayInfo() {
System.out.println("First Name: " + firstName);
System.out.println("Last Name: " + lastName);
System.out.println("Date of Birth: " + dob);
System.out.println("Contact No.: " + contactNo);
System.out.println("E-mail: " + email);
System.out.println("Address: " + address);
System.out.println("City/Town: " + cityTown);
}
}
- Crear un objeto y mostrar la información: En el método
mainde otra clase o en el mismo, crea un objeto deAdmissionFormy llama al métododisplayInfo.
public class Main {
public static void main(String[] args) {
AdmissionForm form = new AdmissionForm("John", "Doe", "01/01/2000", "1234567890", "[email protected]", "123 Main St", "Springfield");
form.displayInfo();
}
}
Tarea 2: Crear un patrón usando caracteres especiales
-
Crear una nueva clase: En el mismo proyecto, crea una nueva clase, por ejemplo, "Pattern".
-
Definir el patrón: Escribe el código para generar un patrón que forme un número o una letra.
public class Pattern {
public static void main(String[] args) {
// Ejemplo de patrón que forma la letra 'A'
int n = 7; // Altura del patrón
for (int i = 0; i < n; i++) {
for (int j = 0; j <= n / 2; j++) {
if ((j == 0 || j == n / 2) && i != 0 || i == 0 && j != 0 && j != n / 2 || i == n / 2)
System.out.print("*");
else
System.out.print(" ");
}
System.out.println();
}
}
}
Tarea 3: Crear un PDF con capturas de pantalla
-
Capturar el código y la salida: Ejecuta ambos programas en BlueJ y toma capturas de pantalla del código y de la salida.
-
Crear un PDF: Usa una herramienta como Microsoft Word, Google Docs, o cualquier software de creación de PDF para insertar las capturas de pantalla y guarda el documento como PDF.
-
Subir el PDF: Si es necesario, sube el PDF a la plataforma requerida o envíalo por correo electrónico según las instrucciones de tu profesor.
Si no tienes una computadora, escribe el código en una hoja de papel tamaño A4, dibuja la salida esperada, y escanea las páginas para crear un PDF.
Espero que estos pasos te sean útiles para completar tu tarea. ¡Buena suerte!
Similar Questions
Write a class that represents a person’s mailing address. It should have separate fields forthe name, street address, city, state and ZIP code. Write an application AddressBook, toincorporate address book application :-(a) To add addresses.(b) Print addresses.
Make use of suitable interface elements to design a web form that requires a user to enter andsubmit the following information to create a new profile:• First name• Last name• Date of birth• Email• Phone number• Address• City• Postal code• Country• Credit card number• Credit card security code (CVV)• Credit card expiry dateYour design should consider the user interface design and form design techniques discussed inlectures. Create a prototype sketch of your form’s design in your answer book.(13 Marks)
Solved this question for me: . A prospective applicant wants to apply for a programme of study in Ho Technical University using the student online information system(SOIS). To apply for admission, the prospective applicant must follow the following procedures. i login to the SOIS ii provide their personal and guardian information iii. provide examination result records iv. choose a programme of study v. save and submit information vi. log out of the system Assume a prospective applicant has obtained an e-voucher number and pin from a regional post office. Draw a sequence diagram showing the interactions involved when a prospective applicant applies for admission at Ho Technical University Using the SOIS.(
You are given 3 lines of input. In the first two lines you have to scan space separated details of the first and the second person respectively in the order: name, admission number, class, percentage, pass result, route number and blood group. Now you will be given an admission number, and you have to return the name, percentage and route of that person in a single line (space-separated). If the admission number is not present, return the error message 'No entry found'. Note that you have to make three classes, a student class(containing name, admission number, and class) and a report class that inherits the student class (and has the percentage and pass result) and a bus class that inherits the student class (and has the route number and blood group). Make appropriate methods where needed and in the driver class, make appropriate calls to these methods for the required output.Sample test case:Input:A 1 9 99 yes 27 B+B 2 10 88 no 28 A+2Output:B 88 28 Explanation: The person whose admission number is 2 has the name B, percentage 88 and route number 28.
Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasses of Employee. A person has a name, address, phone_number, and e-mail address. A student has a status (freshman, sophomore, junior, or senior). An employee has an office, salary. A faculty member has office_hours and a rank. A staff member has a title. Override the toString() method in each of these classes to display their details. Write a Java application and subsequent pseudocode to implement/simulate the same.Input :First line must read the Type of the Object(Person(P)/Employee(E)/Faculty(F)/Student(S)/Staff(T).Second line onwards read details such as name, address, phoneNo, Email and soonOutput :Print ClassName : Name, Address, PhonNo, Email, and rest of the datamembers of that class. For Example :if Type = P, then print Person : Name, Address, PhoneNo, Emailif Type = S, then print Student : Name, Address, PhoneNo, Email, Statusif Type = E, then print Employee : Name, Address, PhoneNo, Email, Office, Salaryif Type = T, then print Staff : Name, Address, PhoneNo, Email, Office, Salary, Titleif Type = F, then print Faculty : Name, Address, PhoneNo, Email, Office, Salary, Office_Hrs, RankNote :The Status for Student is freshman, sophomore, junior, or senior.Overide only toString() method in all the Classes.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.