Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create a class named Apartment that holds an apartment number, number of bedrooms, number of baths, and rent amount. Create a constructor that accepts values for each data field. Also create a get method for each field. Write an application that creates at least five Apartment objects. Then prompt a user to enter a minimum number of bedrooms required, a minimum number of baths required, and a maximum rent that the user is willing to pay. Display data for all the Apartment objects that meet the user’s criteria or an appropriate message if no such apartments are available. Save the files as Apartment.java and TestApartments.java

Even Out (JAVA)

by CodeChum Admin

You know, I was lying when I said the last time that numbers associated with 3 are my favorite, because the one I actually like the most in the world are even numbers! But to make things harder for you, you have to pick the even numbers from a range of two given numbers. Ha!

Now, let's try this one more time! 


Instructions:

  1. Input two integers in one line, separated by a space. The first integer shall represent the starting point, and the other, the ending point.
  2. Print out all even numbers that are within the range of the starting and ending point (inclusive or including the ending point).

Input

A line containing two integers separated by a space.

5·10

Output

A line containing integers separated by a space.

6·8·10

A Shorter Three (JAVA)

by CodeChum Admin

Numbers in threes are awesome! But the one last time was too lengthy to look at, so I just want to view it in a shorter but still readable format.


You okay with this task?


Instructions:

  1. Print out all numbers from 1 to 100 that is divisible by 3 using a for loop just like the last problem, but this time, with each number only separated by the space like that of the sample output.

Output

A line containing integers divisible by 3 separated by a space.

3·6·9·12·15·18·21·24...

There was a Three

by CodeChum Admin

I'm bored with just basic counting. How about we do some complex things this time? But I don't want to be associated with any number that's not divisible by 3.


Think you can handle this?


Instructions:

  1. Print out all numbers from 1 to 100 that is divisible by 3, each in separate lines, using a for() loop.

Instructions

  1. Print out all numbers from 1 to 100 that is divisible by 3, each in separate lines, using a for loop.

Output

Multiple lines containing an integer that is divisible by 3.

3
6
9
12
15
18
21
24
27
30
33
36
39
42
45
48
51
54
57
60
63
66
69
72
75
78
81
84
87
90
93
96
99

Factorials (JAVA)

by CodeChum Admin

For those of you who may not now, a factorial is a product of multiplying from 1 until the number. Now, you must make a program that will accept an integer and then print out its factorial using loops.

Are you up for this task?


Instructions:

  1. Input a positive integer.
  2. Using a for() loop, generate the factorial value of the integer and print out the result.
  3. Tip #1: Factorials work like this: Factorial of 5 = 1 * 2 * 3 * 4 * 5
  4. Tip #2: There's a special case in factorials. The factorial of 0 is 1.

Input

A line containing an integer.

5

Output

A line containing an integer.

120

1. FizzBuzz (JAVA)

by CodeChum Admin

Instructions:

  1. Input a positive integer in one line. This will serve as the ending point of your loop.
  2. Loop from 1 to the ending point (inclusive) and perform the following statements:
  3. If the number is only divisible by 3, print "Fizz"
  4. If the number is only divisible by 5, print "Buzz"
  5. If the number is divisible by both 3 and 5, print "FizzBuzz"
  6. If nothing is true in the previous conditions, skip the number

Instructions

  1. Scan a positive integer n and store it in a variable.
  2. Create a counter variable with a value of 1 and create a loop from counter to n.
  3. Print "Fizz" if the counter in the loop is divisible by 3, "Buzz" if the counter is divisible by 5, "FizzBuzz" if it is both divisible by 3 and 5.
  4. Skip the iteration if it is not divisible by 3 or by 5.

Input

A line containing an integer.

15

Output

Multiple lines containing a string.

Fizz
Buzz
Fizz
Fizz
Buzz
Fizz
FizzBuzz




Write a program that will allow a student to compute for his equivalent semestral grade.

The program should ask the user should input his/her first name, last name, middle initial, and student number.

After, inputting everything above, the output will clear the current screen and a new screen should open. On the new screen, the user will then be greeted "Welcome, <firstname>! The program will then ask for the prelim grade, midterm grade and final grade of the student. The program should only accept grades 100 and below. After getting the three grades, the program should compute for the semestral grade. The computation of the semestral grade is as follows: 30%*PrelimGrade + 30%*midtermgrade + 40%finalgrade

After inputting all the grades, the screen should clear again and will proceed to another screen.


Remarks should be "Passed" or "Failed" Only.

Hint You may use the relational operators "AND(&&)" and "OR(||)" for your conditions.



Can you identify if Cody's name is spelled right? If so, then make a program that accepts four one-letter strings separated by space and print "Correct" if the inputted strings, combined in order, spell the name Cody correctly. If not, print "Wrong". It doesn't matter if it's in uppercase or lowercase, as long as it's spelled correctly, it's considered correct.


Now, will you take on this task?


input

1.First Character

2.Second Character

3.Third Character

4.Fourth Character


Create a program that will convert peso value into 5 different currency using functions. Let the user input the peso value and select a specific currency based on the menu.

Can you identify if Cody's name is spelled right? If so, then make a program that accepts four one-letter strings separated by space and print "Correct" if the inputted strings, combined in order, spell the name Cody correctly. If not, print "Wrong". It doesn't matter if it's in uppercase or lowercase, as long as it's spelled correctly, it's considered correct.




Now, will you take on this task?


input

1.First Character

2.Second Character

3.Third Character

4.Fourth Character


LATEST TUTORIALS
APPROVED BY CLIENTS