CIS-210 Week 2 programming
Gonzalo Gonzalez
Write a program that declares a variable to hold the number of teaspoons in a tablespoon (1 tablespoon = 3 teaspoons). Also declare a variable to represent the number of teaspoons needed for a recipe —for example, 16. Compute the number of tablespoons and remaining teaspoons needed. Then display explanatory text with the values calculated. Save the program as TablespoonConverter.java. Here is an example of what the output should look like:
A recipe that needs 16 teaspoons requires 5 tablespoons and 1 teaspoon.
Also ensure that the following requirements are met:
1) Java file is named correctly.
2) Name, date and assignment information is included at the top of your Java code file as a comment.
3) Java code is properly indented and readable.
4) Code comments are present within each major section of code.
5) Output is formatted like the example above.
Once you verify that your program runs correctly and you have met the requirements, create a Word document
1) Your name, date and assignment identification at the top of the page (Ex. CIS-210 Week 2 Programming Assignment)
2) Full Java source code listing in word
3) Screenshot of the code compiling successfully in the IDE with the timestamp showing.
4) Screenshot of the code running showing the correct output for the following test case conditions:
Test ID |
Input Values |
Output Values |
1 |
16 teaspoons |
5 tablespoons and 1 teaspoon |
2 |
8 teaspoons |
2 tablespoons and 2 teaspoons |
3 |
24 teaspoons |
8 tablespoons and 0 teaspoons |
Please name the results document with <flast>_CIS210_Week_2 where <flast> is your first initial and last name.
Submit both the results document and the actual .java code file through
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.