# Assignment 3
- 此次作業為***Console App***類型,請各位同學不要創建錯誤。
- This assignment is of the ***Console App*** type. Please make sure to create the correct project type.
- 繳交方式同[Assignment 2 繳交教學](https://hackmd.io/@CCUPD2025/SJeWlJx31l),請將所有題目的`.cs` file命名完成後放在同個資料夾,最後壓縮上傳。
- The submission process follows the same steps as in Assignment 2 Submission Guide. Please name all `.cs` files correctly, place them in the same folder, and compress the folder before submission.
- 務必詳閱題目,並且正確命名!
- Make sure to read the instructions carefully and use the correct file names!
## Question 1 - Sum200
Write an application named **Sum200** that sums the integers from 1 through 200.
Display the running total when the program is halfway complete (after the first 100 numbers), and at the end.
>**Directly output the result will not get the point!**
>直接輸出結果而沒有計算,0分!
- - -
#### Sample input 範例輸入:
`No Sample input 無範例輸入`
#### Sample output 範例輸出:

## Question 2 - Perfect
Write an application named **Perfect** that displays every perfect number from 1 through 10,000.
A number is **perfect** if it equals the sum of all the smaller positive integers **(not including itself)** that divide evenly into it.
For example, 6 is perfect because 1, 2, and 3 divide evenly into it and their sum is 6.
`6 = 1 + 2 + 3`
>**Directly output all perfect numbers will not get the point!**
>直接輸出結果而沒有計算,0分!
- - -
#### Sample input 範例輸入:
`No Sample input 無範例輸入`
#### Sample output 範例輸出:

## Question 3 - TippingTable3
In a “You Do It” section of this chapter, you created a tipping table for patrons to use when analyzing their restaurant bills.
Now, create a modified program named **TippingTable3** in which each of the following values is obtained from user input:
- The lowest tipping percentage
- The highest tipping percentage
- The lowest possible restaurant bill
- The highest restaurant bill
**(The tipping step is 0.05, and the bill step is $10)**
- - -
#### Sample input 範例輸入:
The lowest tipping percentage: `0.1`
The highest tipping percentage: `0.4`
The lowest possible restaurant bill: `12.99`
The highest restaurant bill: `34.99`
#### Sample output 範例輸出:

## Question 4 - WebAddress
Write a program named **WebAddress** that asks a user for a business name.
Suggest a good Web address by adding `www.` to the front of the name, removing all spaces from the name, and adding `.com` to the end of the name.
For example, a good Web address for `Acme Plumbing and Supply` is `www.AcmePlumbingandSupply.com`.
- - -
#### Sample input 範例輸入:
`National Chung Cheng University`
#### Sample output 範例輸出:
`www.NationalChungChengUniversity.com`
## Question 5 - CountVowels
Write a program named **CountVowels** that accepts a phrase from the user and counts the number of vowels (a, e, i, o, u) in the phrase.
For this exercise, count both uppercase and lowercase vowels, but do not consider y to be a vowel.
#### Sample input 範例輸入:
`National Chung Cheng University`
#### Sample output 範例輸出:
`10`