Sunday, September 27, 2015

Fahrenheit to Celsius Program

I just wrote a program that converts a temperature given in Fahrenheit to Celsius. This program allows the user to enter values for the original Fahrenheit value. Once the Fahrenheit value is entered into the program by the user, it'll display the original temperature and the formatted converted value. I declared the FahrenheitToCelsius variable three times, so therefore the user can input three different Fahrenheit values and this program will output three different Celsius values. I also experimented with coding different colors for keywords to enhance this program. This program is my first extra credit assignment, and I'm starting to love C# more, and more each week, as I continue to develop my skills in this programming language. Below is a screenshot of the program:


Monday, September 21, 2015

C# Inputs and Outputs Formatting

Updated: Friday, September 25, 2015

My mini-payroll application has been revised to include the dollar symbol and decimals. After re-programming the code, this mini-payroll application is now capable of calculating in decimals and outputs the totals in a currency format. Some of the other changes I have made included the variables. I declared the CalculatePayroll(); variable a total of three times, so therefore the memory has been allocated (namespace is also CalculatePayroll), and once the method was coded, the function has the capability to repeat itself three separate times for the end user during the output process. I have also added a Console.Beep command to the code, which uses a random number generator to create different sounds to notify the user that the previous entry has been completed, and that a new entry was to follow. Lastly, I changed the colors around to make it easier on the eyes and added blue lines as a separator between employees. Below is the output generated from displaying the results of the calculations:




It's about 4AM in the morning and I just completed a working executable for assignment # 2.  Even though this assignment is not due for over a week or so, I managed to battle through it after spending countless hours reading, learning, and planning on how to execute this homework assignment in Visual Studio. The program that I just created was a mini-payroll application that multiplied the employee's hourly rate by the number of hours that the employee had worked, resulting in the employee's total pay. This program used the employee's name in the prompts for the hourly rate, number of hours worked, and the amount to be paid. Once I compiled the code for this program and got it to work, I called CalculatePayroll() three times and entered different values for the prompts. As you can see from below, I also coded different colors for each line.




Sunday, September 13, 2015

Why I am at MATC?

Hello, world! Welcome to my blog! To introduce myself, I will start off by briefly going over my background. I graduated from MATC with an Associates in Hospitality Management in 2006. I am happily married and have a 2-year-old daughter named April Chang. I am working full-time and going to school part-time. I have been working in the hospitality industry for over a decade now, mostly in management, and looking to transition into a new career path as a Mobile Applications Developer.

This is my first semester in the M.A.D program and I am excited for my new journey! The reason I decided to attend MATC is pure and simple, I needed a career change! My passion for computers and technology guided me to the Mobile Applications Developer program. My number one goal and focus is to attain the skills necessary to become a successful Mobile Applications Developer. We are in our fifth generation of computer technology and mobile applications is changing the way we do things, forever!

As an IT student with professional hotel experience, the number of things that can be accomplished by mobile apps is limitless. Can you imagine checking into a hotel room without a key? There is an app for that! Don't believe me? Check this link out for yourself: http://www.computerworld.com/article/2842645/hilton-and-starwood-hotel-guests-can-soon-unlock-rooms-with-smartphones.html . Times are changing and the way we do things are changing along with it. In the near future it will be very common for you to not only be able to check-in to a hotel room with just your smartphone app but you'll be able to control the comforts of your stay, such as the room thermostat setting, lighting, entertainment, etc... with just a mobile application.


I am currently taking a Intro to Object-Oriented Programming class and using Visual Studio to learn the C# programming language. I have completed several executable codes and learned the differences between Procedural Programming and Object-Oriented Programming. In C# programming an object is an instance of a class. Therefore, creating objects is called instantiation. Below is a example of a namespace (which acts as a folder library and defines class validation), a class (which is the blueprint), and within the class there are instructions called a method or function. A method is a behavior in a class. To use a method you do have to create an object, whereas to use a function, you do not have to create an object. Below is a breakdown of one of my completed executable codes assignment:





This assignment is called "How to compile" and is using the DisplayInfo() function. Main is only calling that function. The system date is used and for fun, I coded two different colors to this program and used asterisks as lines. Below shows the namespace (Assignment1), class (HowToCompile), and the Main (The Main method is the entry point of a C# console application or windows application):






Once the namespace and class are assigned, I used the DisplayInfo() function and compiled the command codes below:






Below is the final output after compiling the codes and executing it.