capital country
this case is error please help
What are the various types of constructors used in object oriented programming? Explain with an example.
Explain the difference between class to basic type conversion and basic to class type conversion
Use basic to class type conversion to covert a long integer value to class datatype
Enter a 4 digit number and display the value at thousands position,hundreds position, tens position and ones position.
Write a program to create a class students having name, id, age. Create a file student.txt and open in append mode. Write the detail of 3 students into a file and read the data from the file and display on screen. Also copy content of this file into another file
Create an OOP Java program that will ASK the user for the Prelim, Midterm, Prefinal, and Finals grades.
Create two (2) classes: MyMainClass and SecondClass.
The class SecondClass has 5 double attributes: prelim, midterm, prefinal, finals.
Create one (1) constructor method to set the prelim, midterm, prefinal, and finals grades.
Create one (1) accessor method to calculate for and return the final grade output.
Display the final grade output in the MyMainClass.
Sample output:
Enter prelim grade:75
Enter the midterm grade: 80
Enter the prefinal grade: 90
Enter the final grade: 91
Your final grade is 85.4
The goal of this coading exam is to quickly get you off the ground eith the array method every().there is a selection going on for the civil service sector candidates have to participate in x number of events and, the condidates who score more than 75 points in every event will be selectedgiven candidatesList as input,it contains objects with the name of the condidate and an array consisting of points achieved in each event by the condidate.filter the condidates who have scored more than 75 points in every event
log the array consisting of the names of the selected candidates in the console
i/p:the i/p will be a siongle line containing an array with names of the selected candidates
constraints:keys of objects should be given in quotes
input:
[{'name':'Blake Hodges','points':[76,98,88,84]},{'name':'James Anderson','points':[0,98,12,33]},{'name':'Matthew Norton','points':[89,67,83,93]}]
output:
['Blake Hodges']
1 an array containing 5 integer elements is already provided for you in the code editor below
2 print out the cube of the 1st, 3rd and 5th element of the given array
Output:
Using If /If else/ If else if statements, switch case statement, and nested conditional statement
Create a full java program of this output.
Salvador, Mark F.
BSIT 1C
CHOICES:
A. JEEPNEY FARE
B. CINEMA FARE
ENTER YOUR CHOICE:____
Enter number of student: ___
Enter number of senior: ___
Enter number of regular: ___
Choose your movie category:
A. Foreign(240 pesos)
B. Local (210 pesos)
Enter choice: ____
Total pax: ____
Cinema Fare: _____
Output:
Using If /If else/ If else if statements, switch case statement, and nested conditional statement
Create a full java program of this output.
Salvador, Mark F.
2nd yr
CHOICES:
A. JEEPNEY FARE
B. CINEMA FARE
ENTER YOUR CHOICE:
Enter kilometer to travel:
Choose your status:
A. Student / Senior / PWD (20%)
B. Regular
Enter choice:
Hello, your fare is: