CSCE 101: Introduction to Computer Concepts



Lab 3: CalculatorAcademic HonestyThe work you turn in is to be your work, not copied from someone else, from the web, or generated by a program.Never allow anyone access to your files.Never give anyone your password.Never share your USB memory or email your files to anyone else.Never give anyone a printed copy of your file or an electronic copy.Never allow anyone to copy your work.PurposeYou will be creating a simple calculator program. This program will introduce you to some basic math functionality, and the ability to switch screens.DesignYou will design three different screens, as outlined below. Make sure to do the following:Give meaningful names to your components, following a convention… e.g. CtoFButton (Which calculates Celsius to Fahrenheit). Style your screens: add color, change the text size, and change the shape of your buttonsScreen 1Celsius to Fahrenheit Button:When clicked, this button will switch you to the Celsius to Fahrenheit Screen.Grade Average Button:When clicked, this button will switch you to the Grade Average Screen.How to Switch Screens:Use the following command:Blocks -> Built-in -> Control -> Open another Screen …To specify the screen name, use the command:Blocks -> Built-in -> Text -> “”CtoFScreenTo Fahrenheit ButtonWhen the user clicks the “To Fahrenheit” button, the Fahrenheit label will be populated with the temperature in Fahrenheit based on the Celsius temperature the user entered.Fahrenheit = ((Celsius *9)/5)+32You will use:Blocks -> Built-in -> MathRemember order of operationsE.g. 25 Celcius is 77 FahrenheitBack ButtonWhen the user clicks the “Back” button, the current screen will be closed, returning the user to Screen 1.Use the command:Blocks -> Built-in -> Controls -> Close ScreenGrade ScreenUse a TableArragement to achieve this designCalculate Grade ButtonWhen the user clicks the “Calculate Grade” button, the Grade label will be populated with the user’s final grade in the class, based on what they earned in the different parts of the course. Grade = Homework/Quizzes *.1 + Labs * .3 + Test 1 * .2 + Test 2 * .2 + Final Exam * .2 +Remember order of operationsBack ButtonWhen the user clicks the “Back” button, the current screen will be closed, returning the user to Screen 1.Use the command:Blocks -> Built-in -> Controls -> Close ScreenSubmitting your filesMake sure you have tested your app, and that it works perfectlyOpen “My Projects” in the upper right of the App Inventor webpagePut a check next to the project you want to download (you can only download one at a time). Download the modified version of your app, if you have multiple copies.Select Projects ->"Export selected project (.aia) to my computer"The file will download so go, in Chrome, to the download location by clicking the arrow next to the file name at the bottom of the screen and selecting "Show in folder".Move the _______________.aia file to your X:\101Labs directory for grading.Make sure that your file is named CalculatorsXY.aia, where XY are your initials, as this is the file we will be looking for when grading.Grade BreakdownPointsExpectation20%Correctly laying out the components on the screen20%Changing Screens and Back Buttons30%Celsius to Fahrenheit Button30%Calculate Grade Button ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download