Mobile Apps Development | Online Assignment Help


Don't use plagiarized sources. Get Your Assignment on
Mobile Apps Development | Online Assignment Help
Just from $13/Page
Order Now

Fall 2018 – CIS 240 (Mobile App Development)



LAB 3– CARS   (Max Grade 110pts)

The following lab is intended to exercise your skills in creating variables, arrays, functions, classes and sub-classes.


  1. (50pts)Create a “Car” class with the following criteria:
    1. Properties (5)
      1. year – initialized by initializer
      2. make – initialized by initializer
  • model – initialized by initializer
  1. color – initialized by initializer
  2. currentSpeed – initialized to 0 by initializer


  1. Functions (5)
    1. init(year: Int, make: String, model: String, color: String) – Initializer function that sets year make model color based on user input and sets currentSpeed to 0.


  1. changeSpeed(to speed: Int) ->String– This function will change the property “currentSpeed” to whatever speed parameter is provided to it. NOTE: the function will not change the speed directly it must decide if the provided speed is greater or lesser than current speed and then call either “hitTheGas” if the car needs to speed up, or “pumpTheBreaks” if the car needs to slow down. The function should return a string message like: “The car sped up by _ miles”, “The car slowed down by _ miles”, “The car didn’t change its speed” or “The car stopped”.


  • hitTheGas(to speed: Int) ->Int– This function accepts an integer and changes the current speed to the speed that was passed to the function ONLY of the provided speed is GREATER than the current speed. If the speed provided is less than the current speed the function should not change the current speed.



  1. pumpTheBreaks(to speed: Int) ->Int-This function accepts an integer and changes the current speed to the speed that was passed to the function ONLY of the provided speed is LESS than the current speed. If the speed provided is greater than the current speed the function should not change the current speed.


  1. stopTheCar() – This function changes the currientSpeed to 0
  1. (30pts)Create a sub class “Batmobile” that inherits from the Car class
    1. Properties will remain unchanged
    2. Functions
      1. Override the init() function so that it only accepts year as input the rest of the attributes should be automatically initialized as such:
        1. make – Bat Automotive
        2. model – Batmobile
        3. color – Black
        4. currentSpeed–100


  1. shootMachineGun() -> String– This is a function of the Batmobile that returns a string: “Bang BangBang”


  1. (20pts)Create an array named “carCollection” and add 3 cars to it, 2 regular cars and 1 Batmobile. HINT: you must create Car variables to add to the array.


  1. Extra Credit (10pts)Create a loop that iterates over the array and prints the makes and models of each car to the console:


Example console output:

Honda Accord

Bat Automotive Batmobile

Nissan Altima





Format: Lab MUST be written in a single PLAYGROUND project

Medium: Lab MUST be submitted to BLACKBOARD

Date: Lab MUST be submitted by 4pm MondayOctober 8th



*NOTE: Please make sure you submit a lab by the due date.  Late submissions will NOT be accepted, we will go over the lab in class and I will post my solution. 

Please follow and like us:
Tweet 176

Calculate your paper price
Pages (550 words)
Approximate price: -

Why Choose Us

Quality Papers

At, we always aim at 100% customer satisfaction. As such, we never compromise the quality of our essay services. Our essay helpers ensure that they craft each paper carefully to match the requirements in the instruction form.

Professional Academic Writers

With, every student is guaranteed high-quality, professionally written papers. We ensure that we hire individuals with high academic qualifications who can maintain our quality policy. These writers undergo further training to sharpen their writing skills, making them more competent in writing academic papers.

Affordable Prices

Our company maintains a fair pricing system for all paper writing services to ensure affordability. Our pricing system generates quotations based on the properties of individual papers.

On-Time delivery

MyHomeworkWriters guarantees all students of swift delivery of papers. We understand that time is an essential factor in the academic world. Therefore, we ensure that we deliver the paper on or before the agreed date to give students ample time for reviewing.

100% Originality maintains a zero-plagiarism policy. As such, MyHomeworkWriters ensure that they use the students’ instructions to deliver plagiarism-free papers. We are very keen on avoiding any chance of similarities with previous papers.

Customer Support 24/7

Our customer support works around the clock to provide students with assistance or guidance at any time of the day. Students can always communicate with us through our live chat system or our email and receive instant responses. Feel free to contact us via the Chat window or support email:

Try it now!

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Samples

Our writers complete papers strictly according to your instructions and needs, no matter what university, college, or high school you study in.

All samples
Analysis (any type)
Argumentative essays
Dissertation/Dissertation chapter
Analysis (any type)
Advantages and disadvantages of lowering the voting age to thirteen
Undergrad. (yrs 1-2)
Political science
View this sample
Argumentative essays
Is euthanasia ethical or not?
Undergrad. (yrs 3-4)
View this sample
Dissertation/Dissertation chapter
Videoconferencing as a teaching tool
Undergrad. (yrs 3-4)
View this sample

Our Essay Writing Services

MyHomeworkWriters holds a reputation for being a platform that provides high-quality academic services. All you need to do is provide us with all the necessary requirements and wait for quality results.


Essay Writing Services

At MyHomeworkWriters, we have highly qualified academic gurus who will offer great assistance towards completing your essays. Our essay help service providers are well-versed with all the aspects of developing high-quality and relevant essays.


Admission and Business Papers

With, we will help you secure a position at your desired institution. Our essay writing services include the crafting of admissions papers. We will still help you climb your career ladder by helping you write the official papers that will help you secure a job. We will guide you on how to write an outstanding portfolio or resume.


Editing and Proofreading has a professional editorial team that will help you organize your paper, paraphrase it, and eliminate any possible mistakes. Also, we will help you check on plagiarism to ensure that your final paper posses quality and originality.


Technical papers

My Homework Writers harbors professional academic writers from diverse academic disciplines. As such, we can develop essay help services in all academic areas. The simplicity or complexity of the paper does not affect the quality of essay writing services.

Sitemap: User-agent: * Allow: / User-agent: AhrefsBot Crawl-Delay: 1 User-agent: SemrushBot Crawl-Delay: 1
Social media & sharing icons powered by UltimatelySocial