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

Implementing using

class Loan


Sample Run:

Enter yearly interest rate, for example 8.25: 10

Enter number of years as an integer, for example 5: 5

Enter loan amount, for example 120000.95: 300000

The monthly payment is 6374.11

The total payment is 382446.80



Create a class called Register with three instance variables: username, email, and password. These three pieces of information are all String. Your class should have a constructor that initializes the three instance variables and assumes that the provided values are correct. For each instance variable, provide a set and a get method. Create a displayInformation method in order to display the username, email, and password, separated by a comma ( , ). Create a test application called RegistrationInfoTest that demonstrates the Register class.


given a number of mangoes and number of persons. Find the number of ways to distribute identical mangoes among identical persons

Calculate and display the sum of all the numbers divisible by 7 between 18 and 534 using loops and conditional statements i.e. 21+28+35+...+525+532.



Q5:     Create a list containing the following 3 elements:


your favorite color

the number of pets you have

a boolean value describing whether you have previous programming experience


Q6:     Complete the following print and if statements by accessing the appropriate elements from my_list.


Hint: Use the list indexing notation [].

 

print('My favorite color is', ???) print('I have {} pet(s).'.format(???)) if ???:

print("I have previous programming experience") else:

print("I do not have previous programming experience")


Q7:     Add your favorite single digit number to the end of the list using the appropriate list method.

Q8:     Remove the first element of the list, using the appropriate list method.

Q9:     Complete the print statement below to display the number of elements in my_list. print("The list has {} elements.".format(???))


Q11: A travel company wants to fly a plane to the Bahamas. Flying the plane costs 5000 dollars. So far, 29 people have signed up for the trip. If the company charges 200 dollars per ticket, what is the profit made by the company?


 

Fill in values or arithmetic expressions for the variables below.


cost_of_flying_plane = ??? number_of_passengers = ??? price_of_ticket = ???

profit = ???

print('The company makes of a profit of {} dollars'.format(profit))

Q11b Out of the 29 people who took the flight, only 12 buy tickets to return

from the Bahamas on the same plane. If the flying the plane back also costs 5000 dollars, and does the company make an overall profit or loss? The company charges the same fee of 200 dollars per ticket for the return flight. (Optional)


Use an if statement to display the result.



Write a C++ program to find sum of all even numbers between 1 to n. – using for loop


Write a C++ program to print all even numbers between 1 to 100. - using while loop


Write a C++ program to print all natural numbers in reverse (from n to 1). The value n should be input by the user.- using while loop FLOWCHART & PSEUDOCODE


1.      Write a program using Java to move the last element of a LL to the beginning of the list.

 

2.      Write a program using Java to find the number of common elements of two linked lists.

e.g. 1à3à5à7ànull

       2à3à7à9à11ànull

Output: 2

 

3.      Write a program using Java to reverse the elements of a linked list

 

4.      Write a program using Java to find the middle node of a linked list (ensure that the number of nodes of the LL is an odd number).

 

5.      Write a program to count the number of times a given integer appears in a LL.

 

6.      Preparation for theory-based questions which can be asked during interview.

 

6.1  Linked List vs 1-d Array

6.2  Comparison of Singly Linked List, doubly linked list and circular Linked list. Advantages and disadvantages of each.



LATEST TUTORIALS
APPROVED BY CLIENTS