Giter Club home page Giter Club logo

classlab's Introduction

Lab 3 - Burrito Class

In this next lab, you will need to create a class called Burrito, this class will determine the price of a burrito with certain ingredients. Use the comments and the function prototypes to complete their definitions in Burrito.cpp. Most of the functions are self-explanatory, getters like meat or cheese will return the value of the member variable they try to get; setters will set a new value into the member variable referenced.

The function price is the most difficult; a burrito’s starting price is $2 dollars, that is a burrito with no meat and no cheese; adding cheese to the burrito will increase its price by $1, adding meat (any kind) will add $2, but if the meat is Asada then that is more expensive (that is a good cut) it’ll add $1 to the cost. If your calculations are correct you should get the output as shown below.

image

When you are done be sure to update this repo to contain the most recent version of your program and submit a comment in BB telling me you are done

The following is the basic criteria to be used to grade your submission: You start with 100 points and then lose points as you don't do something that is required.

  • -20: Incorrect/Missing member variables.
  • -20: Incorrect/Missing member function definitions.
  • -15: Function definitions should access the class Burrito.
  • -10: Missing name/not enough comments.
  • -40 Does not compile.

Important: more points may be lost for other reasons not specified here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.