1) Practice: An app the reads the radius and creates a circle object to calculate the area and circumference of the circle. I will give you an example of this for each chapter.
2) Assignment: An app that reads the length and width and creates a rectangle object to calculate the area and perimeter of the rectangle. Note you will add another textbox (input) control and create a constructor that take two parameters.
Examples of constructors that take 2 parameters:
JavaScript:
var myRect = new Rectangle(len,wid);
//Rectangle.js
constructor(len,wid)
{
this.length=len;
this.width=wid;
}
Java:
Rectangle myRect = new Rectangle(l,w);
//Rectangle.java
public Rectangle(double length, double width)
{
this.length = length;
this.width = width;
}
C#:
Rectangle myRect = new Rectangle (Double.Parse(etLength.Text),Double.Parse(etWidth.Text) );
//Rectangle.cs
public Rectangle (double length, double width)
{
this.length = length;
this.width = width;
}
Swift:
let myRect=Rectangle(length:len!, width:wid! );
//Rectangle.swift
init(length: Double, width: Double) { // Constructor
self.length= length
self.width=width
}
You will implement the assignments on the following platforms:
- MIT AppInventor
- Android and Android studio, language is java.
- Xamarin and Microsoft Visual Studio. lamguage is C#.
- iOS and Xcode , the language is Swift.
- Cross Platform Web: with a code editor (replit.com is preferred), the language is HTML5, CSS and Javascript.
I have found that this site is very informative, interesting and very well written. keep up the nice high quality writing
ReplyDeleteMobile Application Development in Barrie
Thanks For Sharing His Great Post
ReplyDeletemobile application development
Your article is good for more details visit CUSTOM WEBSITE DESIGN IN DUBAI
ReplyDeleteAwesome! I have read many other articles on the same topic, your article convinced me! I hope you continue to have high-quality articles like this to share with everyone!
ReplyDeleteMobile App Development Services
How to Develop an Android App for Beginners
I really enjoyed reading this article!! The article was really fantastic about Mobile App Development Companies, types of mobile app, and much more. I wish a similar work later on.
ReplyDeleteThis is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work.
ReplyDeleteWebsite Design Company in Pune