WEB3700
Projects Website

Assignment 2 Questions

Download Code

Question 1

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99

Question 2

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99

Question 3

Gas prices are between $2.00 and $3.00.

Question 4

0-17.8
1-17.2
2-16.7
3-16.1
4-15.6
5-15
6-14.4
7-13.9
8-13.3
9-12.8
10-12.2
11-11.7
12-11.1
13-10.6
14-10
15-9.4
16-8.9
17-8.3
18-7.8
19-7.2
20-6.7
21-6.1
22-5.6
23-5
24-4.4
25-3.9
26-3.3
27-2.8
28-2.2
29-1.7
30-1.1
31-0.6
320
330.6
341.1
351.7
362.2
372.8
383.3
393.9
404.4
415
425.6
436.1
446.7
457.2
467.8
478.3
488.9
499.4
5010
5110.6
5211.1
5311.7
5412.2
5512.8
5613.3
5713.9
5814.4
5915
6015.6
6116.1
6216.7
6317.2
6417.8
6518.3
6618.9
6719.4
6820
6920.6
7021.1
7121.7
7222.2
7322.8
7423.3
7523.9
7624.4
7725
7825.6
7926.1
8026.7
8127.2
8227.8
8328.3
8428.9
8529.4
8630
8730.6
8831.1
8931.7
9032.2
9132.8
9233.3
9333.9
9434.4
9535
9635.6
9736.1
9836.7
9937.2
10037.8

Question 5

Invalid. Please enter a number.

It is a valid credit card.

The credit card is not valid because it contains a non-numeric character.