COSC1410 Introduction to Computer Science • Assignment 1 solved

$19.99

Original Work ?

Download Details:

  • Name: Assignment1-2.zip
  • Type: zip
  • Size: 201.65 KB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (2 votes)

1. Problem Description In this assignment, you have two options (you are supposed to do ONLY ONE of problems, NOT both): Problem 1: You will develop and implement a program that allows the user to i) convert inches to centimeters and ii) convert centimeters to inches.
Problem 12: You will develop and implement a program that allows the user to i) convert Fahrenheit to Celsius and ii) convert Celsius to Fahrenheit.
The primary objective of this assignment is for you to demonstrate use of the branching mechanisms. The program begins by displaying a list of two options presented to the user. The program then displays a prompt asking the user to make a choice. Then, the user is prompted to enter the value to be converted. The program then computes the equivalent value and prints a final line of output containing both values (both the entered and the computed).
Assuming that Problem 1 is chosen, the following outputs were produced by running the program on 3 separate occasions:
Test 1 (On Windows)
Introduction to Computer Science • Assignment 1
© 2016 Hakan Haberdar hakan@haberdar.org
Test 2 (On Windows) If the user makes an entry that is not valid, print out a statement that warns the user and terminates the program.
Test 3 (On Windows) Please note, you may design a better user interface for the assignment.
Introduction to Computer Science • Assignment 1
© 2016 Hakan Haberdar hakan@haberdar.org
2. Grading
A correct solution: worth 100 points
Deductions:
ERROR DEDUCTED POINTSP rogram cannot be compiled 40 Program terminates unexpectedly during runtime 40 User interface does not have required information 5 No prompt for entering invalid data 10 Code is not commented 10 Proper indentation is not used 20 Proper variable types are not used 5 Correct output is not displayed 20 Correct conversion logic is not used 20
1. Feel free to discuss ideas and implementations with your classmates, however DO NOT share code.
2. If you have a question about the assignment, do not wait until the last minute to ask.
3. Normal deductions for late submissions will be in effect. Please see Assignment Guidelines.
4. ANY kind of plagiarism or cheating, will result in a grade of 0.