My orders
How it works
Examples
Reviews
Blog
Homework Answers
Submit
Sign in
How it works
Examples
Reviews
Homework answers
Blog
Contact us
Submit
Fill in the order form to get the price
Subject
Select Subject
Programming & Computer Science
Math
Engineering
Economics
Physics
Other
Category
C++
Software Engineering
Java | JSP | JSF
Databases | SQL | Oracle | MS Access
C
Python
Excel
C#
Visual Basic
Computer Networks
Functional Programming
Android
Assembler
UNIX/Linux Programming
ASP | ASP.NET
MatLAB
Wolfram Mathematica
MathCAD
Maple
Perl
Action Script | Flash | Flex | ColdFusion
Ruby | Ruby on Rails
Prolog
Objective-C | Swift
Algorithms
Web Development
HTML/JavaScript Web Application
NodeJS Web Application
Other
Deadline
Timezone:
Title
*
Task
*
{"ops":[{"insert":"Mobile\nYou are given an incomplete \nMobile class.A Mobile object created using the \nMobile class should have the properties like brand, ram, battery, isOnCall, and song.Implement the \nMobile class to initialize the mentioned properties and add the following methods,\n\nMethod:- charging\nDescription:- When this method is called, it should set the value of the\u00a0battery\u00a0to 100, if the\u00a0battery\u00a0is already 100 then log\u00a0"},{"attributes":{"italic":true},"insert":"\"Mobile Fully Charged\""},{"insert":"\u00a0and call\u00a0removeCharging\n\nmethod:- removeCharging\nDescription:- It should log\u00a0"},{"attributes":{"italic":true},"insert":"\"Please remove charging\"."},{"insert":"\n\nmethod:- playMusic\nDescription:- It should log a text with the\u00a0song, as shown in the sample output\n\nmethod:- stopMusic\nDescription:- It should log\u00a0"},{"attributes":{"italic":true},"insert":"\"Music Stopped\""},{"insert":"\n\n"},{"attributes":{"italic":true},"insert":"method:- "},{"insert":"makeCall\nDescription:- When this method is called, it should set the value of the\u00a0isOnCall\u00a0to true and log\u00a0\n"},{"attributes":{"italic":true},"insert":"\"Calling ...\""},{"insert":"\n\n"},{"attributes":{"italic":true},"insert":"method:- "},{"insert":"endCall\nDescription:- When this method is called, it should log\u00a0"},{"attributes":{"italic":true},"insert":"\"No ongoing call to end\""},{"insert":"\u00a0if\u00a0isOnCall\u00a0is false, else log\u00a0"},{"attributes":{"italic":true},"insert":"\"Call Ended\""},{"insert":"\u00a0and set the value of the\u00a0isOnCall\u00a0to false.\n\nInput"},{"attributes":{"header":4},"insert":"\n"},{"insert":"The first line of input contains a string\u00a0brand"},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The second line of input contains a string\u00a0ram"},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The third line of input contains a number\u00a0battery"},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The fourth line of input contains a string\u00a0song"},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The fifth line of input contains a boolean\u00a0isOnCall"},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"Output"},{"attributes":{"header":4},"insert":"\n"},{"insert":"The first line of output is a string containing "},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"battery before charging, as shown in the sample outputs"},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The second line of output is a string based on "},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"battery, as shown in the sample outputs"},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The third line of output is a string containing "},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"song, as shown in the sample outputs"},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The fourth line of output is a string "},{"attributes":{"italic":true},"insert":"\"Music stopped\""},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The fifth line of output is a string "},{"attributes":{"italic":true},"insert":"\"No ongoing call to end\""},{"insert":" or "},{"attributes":{"italic":true},"insert":"\"Call Ended\""},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The sixth line of output is a string "},{"attributes":{"italic":true},"insert":"\"Calling...\""},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The seventh line of output is a string "},{"attributes":{"italic":true},"insert":"\"Call Ended\""},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"Constraints"},{"attributes":{"header":4},"insert":"\n"},{"insert":"0 <= \nbattery <= 100\n\nSample Input 1\nApple\n2 GB\n90\nWaka Waka\nfalse\n\nSample Output 1\nMobile charged 90%\nMobile charged 100%\nPlaying Waka Waka song\nMusic stopped\nNo ongoing call to end\nCalling...\nCall Ended\n\nSample Input 2\nSamsung\n8 GB\n100\nGangnam Style\ntrue\n\nSample Output 2\nMobile charged 100%\nMobile is fully charged\nPlease remove charging\nPlaying Gangnam Style song\nMusic stopped\nCall Ended\nCalling...\nCall Ended\n\n\n"}]}
I need basic explanations
Special Requirements
Upload files (if required)
Drop files here to upload
Add files...
Account info
Already have an account?
Create an account
Name
*
E-mail
*
Password
*
The password must be at least 6 characters.
I agree with
terms & conditions
Create account & Place an order
Please fix the following input errors:
dummy