QUESTION 1:
import java.io.*;
import java.util.*;
import static java.lang.System.*;
QUESTION 2:
// Create an object of Calendar class.
java.util.Calendar current ;
// Use getInstance() method to initialize the Calendar object.
current = java.util.Calendar.getInstance();
// Initialize the int variable year with the current year
year = current.get(current.YEAR);
QUESTION 3:
interface...
Monday, February 24, 2020
Saturday, February 15, 2020
WEEK 3 ASSIGNMENT SOLUTION
HEY! GUYS HERE IS THE CODE OF ALL THE QUESTIONS:
QUESTION 1:
if (n<=1)
return (1-n);
return fib(n - 1) + fib(n - 2);
QUESTION 2:
class Point{
double x,y;
public double distance(Point p1, Point p2)
{
...
Tuesday, February 11, 2020
PROGRAMMING IN C++ WEEK 3
HELLO!! FRIENDS HERE I HAVE PASTED ONLY THE SOLUTION AND NOT THE COMPLETE PROGRAM SO PASTE IT CAREFULLY IN YOUR SOLUTION.QUESTION 1:mutable int bill; // LINE-1public: Customer(int _cust_id, string _name, int _bill) : cust_id(_cust_id), name(_name), bill(_bill) {} void changeBill(int s)const...
Sunday, February 2, 2020
PROGRAMMING IN JAVA WEEK 1 ASSIGNMENT SOLUTION
Here I have pasted only the answer and not the complete program so please paste the stuff carefully, I have tried to copy the whole program but it is not selecting the whole program at once.
QUESTION 1 :
//Calculate the perimeter
perimeter=2*Math.PI*radius;
//Calculate the area
area=Math.PI*radius*radius;
if(area>0&&perimeter>0)
{
...
Subscribe to:
Posts (Atom)