com150
1.0.0
今日、Visual Basicを使用して3つの簡単なWindowsアプリケーションを作成するように指示されました。フラッシュドライブを忘れてしまったので、ここにコードをアップロードします。
機能を備えたプログラム:
circle: Finds the area of a circle after user inputs the radius.
squareArea: Finds the area of a square after the side length is inputed by the user.
triangleArea: Finds the area of a triangle after the base and height is inputed by the user.
luck: Gives you 5 random numbers. The first number is red (because why not?)
average: Finds the average of two numbers.
greater: Compares numbers and then tells you if the numbers are equal/greater to eachother in a message box.
largerNumber: Compares numbers and then tells you which one is greater.
80+: Tells you if you passed (greater than or equal to 80) or failed (less than 80) in a message box.
**The Odds Evens one was orignally supposed to be something else at first, but I was too lazy to change the name.**
GrossPay: Calculates the gross pay when given the # of hours worked and the pay rate.
GrossPay.v2: It has the same functions as the original, but it comes with a tiny hint of judgment
アップデート
GitHubにすべてのコードをアップロードすることは、FlashDriveを常にもたらすよりも効率的であることに気付きました。 (誰が試験で100を手に入れると思います!!!)