Assign me Konig theorem and Peterson theorem
assigned me with different types of linked list
import java.util.Scanner;
public class SimpleInterest { public static void main(String args) { Scanner scanner = new Scanner(System.in);
// Reading inputs from the user
System.out.print("Enter the principal amount: ");
double principal = scanner.nextDouble();
System.out.print("Enter the rate of interest: ");
double rate = scanner.nextDouble();
System.out.print("Enter the time duration (in years): ");
double time = scanner.nextDouble();
// Calculating the simple interest
double simpleInterest = (principal * rate * time) / 100;
// Displaying the simple interest
System.out.println("Simple Interest = " + simpleInterest);
}
}
In this implementation, we first import the Scanner
class to read inputs from the user. We then prompt the user to enter the principal amount, rate of interest, and time duration using the System.out.print()
method.
Next, we read these values using the nextDouble()
method of the Scanner
class and store them in variables principal
, rate
, and time
.
We then calculate the simple interest using the formula mentioned above and store the result in the variable simpleInterest
.
Finally, we display the result to the user using the System.out.println()
method.
kindly assign me binary search
Is it necessary to be an intern in order to be assigned tasks?
“Binary Search On Answer”
please assign me to Huffman coding
Heap in C++ using OOP and template
My assigned task: Priority queue in Python using OOP concepts
Working on Selection Sort in Python using OOP concepts.
Done with Adaptive and Non Adaptive Algorithms.
I’am working on Kadene’s algorithm.
Working on Next Greater Element using Stack
(post deleted by author)
Working on Approximate String Matching
Ceiling in sorted array
I will work on the Cook Levin theorem