Mr. Mohlamonyane needs to take out a loan to buy a new car. He wants an application that will allow him to enter the loan amount and the number of years he has to pay off the loan (called the term). The term can be 2 years, 3 years, 4 years, or 5 years only. The application should calculate and display his monthly car payment, using annual (per year) interest rates of 5%, 6%, 7%, 8%, 9% and 10% respectively.
Create a program of temperature conversion (Celsius, farenheit) using array and array structure
In this exercise you will create a program that reads a letter of the alphabet from the user. If the user enters a, e, i, o or u then your program should display a message indicating that the entered letter is a vowel. If the user enters y then your program should display a message indicating that sometimes y is a vowel, and sometimes y is a consonant. Otherwise your program should display a message indicating that the letter is a consonant.
For example, suppose that one serving of Sambar takes 500 g of tomato and 300 g of onion. Suppose that you have a 900 g package of tomato and a 660 g package of onion. You could form these into a kit that makes two servings of Sambar. To make two servings, 1000 g of tomato and 600 g of onion are required. Since the 900 g of tomato you have is within [90, 110]% of the 1000 g of tomato required, and the 660 g of onion you have is within [90, 110]% of the 600 g of onion required, this is acceptable. However, you could not say that the kit makes one or three servings of Sambar, nor could you say that it makes 1.999 servings (the number of servings must be an integer).
Write a program to print a pyramid of N rows
+ + + + * + + + +
+ + + * * * + + +
+ + * * * * * + +
Create an abstract class Shape and the derived classes Square, Triangle and Circle. Write a
java program to display area of different shapes.
Let a class Person contains data members name and age. A constructor with two arguments
is used to assign name and age. Person is of two types a) Student and b) Teacher. class
Student contains data members i)course ii) Roll Number and iii)Marks and method
display() to display data related to student. Similarly, class Teacher contains data members
i) subject_assigned (May take this as a String) ii) contact_hour and method display () to
display data related to teacher. Implement this program using base class constructor in
derived class
Write a Java program to declare a Class named as Student which contains roll number,
name and course as instance variables and input_Student () and display_Student () as
instance methods. A derived class Exam is created from the class Student . The derived
class contains mark1, mark2, mark3 as instance variables representing the marks of three
subjects and input_Marks () and display_Result () as instance methods. Create an array of
objects of the Exam class and display the result of 5 students
Write a program that computes for the average of 5 numbers using a sequence control structure.
Write a program that asks the user for their name and greets them with their name. (Example “Hello Jade”)