国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

iOS移動應(yīng)用程序開發(fā) | 第二講-變量、常量和數(shù)據(jù)類型:Swift by Na

2023-01-08 11:34 作者:陳鵬宇老師  | 我要投稿

?
01:33:33
?

第二次作業(yè)

作業(yè)一:完成Playgrounds App《學(xué)習(xí)編程1》4-7章


作業(yè)二:完成下面的練習(xí)題

1. Consider the following array, containing a collection of our favorite pizzas:

Create a new Playground and write some code to do the following:

(i) Create this array, as a variable, storing the pizza names in it.

(ii) Print the element of the array that contains "Vegetarian".

(iii) Append the pizza "Pepperoni" to the array, without changing the rest of the array.

(iv) Insert a new pizza, "Ham, Pineapple, and Pesto", at index 2, shuffling everything after along by one index.

(v) Remove the "Cheese" pizza from the array entirely, leaving the rest intact.

(vi) Swap the "Prosciutto" pizza for a "Pumpkin and Feta" pizza, without changing the rest of the array.

(vii) Print out the whole array.


2. Consider the following questions about sets, and see if you can figure out the answer. Then run them in a Playground to find out.

(i)

What would be printed?

(ii)

What’s in this collection?

(iii)

What’s in this set?

(iv)

What does forbiddenPizzas contain now?


3. Consider the following dictionary, representing a bunch of dessert pizzas and the quantities that have been ordered:

Using Swift code, print the quantity of Rocky Road, and the quantity of Caramel Swirl. And then add a new order for 17 Banana Split pizzas.

iOS移動應(yīng)用程序開發(fā) | 第二講-變量、常量和數(shù)據(jù)類型:Swift by Na的評論 (共 條)

分享到微博請遵守國家法律
太白县| 沅江市| 和顺县| 大英县| 酒泉市| 元氏县| 河南省| 剑河县| 唐海县| 上思县| 凤城市| 双城市| 山西省| 景德镇市| 城口县| 修武县| 岢岚县| 裕民县| 苗栗县| 女性| 巴林左旗| 台东县| 留坝县| 鄂托克旗| 武强县| 清徐县| 南康市| 铁力市| 开封市| 金乡县| 噶尔县| 贵阳市| 循化| 哈尔滨市| 拜城县| 静安区| 临安市| 汕头市| 惠来县| 石阡县| 慈溪市|