Answer:
The answer to this question is given below in the explanation section.
Explanation:
The code is written in C++
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
#include <string>
using namespace std;
void display()
{
string yourName;
string watchedMovie;
cout<<"What is your name? ";
cin>>yourName;
cout<<"Which movie have you seen? ";
cin>>watchedMovie;
cout<<"Today, I have learned that " <<name<<" watched "<<watchedMovie<<" movie";
}
int main()
{
display();
return 0;
}
Some primary uses of cell phones include, keeping in touch with friends or family. As well as communicating to work and to have in the event of an emergency.
<span>I guess you need it written in Java. So if you need only constructor, then here it is:
public Clock(Clock clock1) {
this.hours = clock1.hours;
this.isTicking = clock1.isTicking;
}
This code is 100% correct</span>