Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Starter Object File that Represents Data in A Mobile Application Assignment

Starter Object File that Represents Data in A Mobile Application Assignment

In this chapter we’re getting our first look at Object Oriented Programming (OOP) which refers to the coupling of data and the functions that operate on that data. In all of our programs up to this point, we’ve used some variables and maybe a few structs, but we haven’t written an example where we tightly coupled the a data structure (like bridge traffic) with the functions that operate on it (like updating the bridge traffic for a single bridge, in a single month). OOP is a paradigm of software design that is the foundation of most modern software, especially large programs.
We will not go into OOP in depth in this class, but our study of it begins with objects. In C++ we write object specifications using classes.
Assignment
A starter object file that represents data we would find for a single mobile application in the Google Play Store is here: googlePlayApp-1.cpp. Download this file and load it into your IDE. We will add more fields and data to it in class.
Complete the rest of the implementation of this class, writing set and access methods for each of the fields. For example, if there is a data field called “price”, add and complete two methods in that class: setPrice() and getPrice(). Also be sure to add the ability to set these fields in the constructor.
Here are the other requirements:
1) The number of installs of an app. is handled differently in the Play Store. If an app has over 1,000,000 installs, the number of installs will be displayed as “1M+ Installs”. Add a field numInstalls of data type int. In the access method for this field (getNumInstalls()), return a string instead of an int, and say “1M+ installs” if the number is over 1,000,000, otherwise use the number as-is, converted to a string. You can convert the string the same way we’ve been using for input: string s = atoi(numInstalls.c_str());
2) Price is handled in a similar way – if the price is 0.0, the getPrice() function should return the word “˜Free’, else the price as a string.
3) Write a main() program that creates 3 apps, with names (and other parameters) of your choosing. You can use either 3 variables or an array. One of the apps. should have numInstalls set to over 1M to test your code for #1.
4) Output the 3 apps and all their attributes using the access methods you created.
5) All of the data you add to the file must be private, while the functions should be public.
What to submit in Canvas
Submit your .cpp file as usual, with a screenshot of 1 run of the program.
Example Output
The three apps in the store are:Name: Name Art Photo EditorNumber of installs: 1M+Rating: 4.5Price: FreeNumber of reviews: 4294Name: Easy Origami IdeasNumber of installs: 4939Rating: 4.0Price: $1.99Number of reviews: 122Name: MinecraftNumber of installs: 1M+Rating: 4.9Price: $4.99Number of reviews: 2376564
I also upload the helping cpp file.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Blackboard Experts only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Blackboard Experts are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Blackboard Experts is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Blackboard Experts, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.