CMIS 141 Introductory Programming Homework 1 – Quiz Average
University of Maryland University College Introductory Programming CMIS 141, 7981 Homework 1 – Quiz Average Student: Professor: Rebecca Rowson March 21, 2017 2 1 Assignment CMIS 141 Homework 1 1.1 Before attempting this project, be sure you have completed all of the reading assignments, hands-on labs, discussions, and assignments to date. 1.2 Write a Java program that prompts a user to enter student EMPLID (e.g., 12389), quiz 1 percentage score (e.g., 89.5), quiz 2 percentage score (e.g., 81.2), quiz 3 percentage score (e.g., 92.5), your age in months (e.g. 384) and the current temperature in degrees Celsius and then displays the data entered along with some conversions and calculations. 1.3 A minimum of 3 test cases should be supplied in the form of table with columns indicating the input values, expected output, actual output and if the test case passed or failed. This table should contain 4 columns with appropriate labels and a row for each test case. An example template is shown below. Note that the actual output should be the actual results you receive when running your program and applying the input for the test record. 1.4 The google recommended Java style guide, provided as link in the week 2 content, should be used to format and document your code. Specifically, the following style guide attributes should be addressed: • Header comments include filename, author, date and brief purpose of the program. • In-line comments used to describe major functionality of the code. • Meaningful variable names and prompts applied. • Class names are written in UpperCamelCase. • Variable names are written in lowerCamelCase. • Constant names are in written in All Capitals. • Braces use K&R style.
Geschreven voor
Documentinformatie
- Geüpload op
- 2 september 2021
- Aantal pagina's
- 16
- Geschreven in
- 2021/2022
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden