Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

COMP 1900 - Fall 2018 Lab 3: Conditionals (12 pts) Number of Peopis: Individual Dus: By the end of your lab session today. You MUST

image text in transcribed
image text in transcribed
COMP 1900 - Fall 2018 Lab 3: Conditionals (12 pts) Number of Peopis: Individual Dus: By the end of your lab session today. You MUST submit dis before leaving the lab Grader Please refer to the COMP 1900 syllabus for your lab TA. Questions about grading? Contact him ber firt Coding Style: Use camelCase for variable names, use consistent indentaticn in your code, and include a reasonable asount of comments throughout your code. The TAs may deduct points for poor coding style Within the 1900 folder on your desktop, create a new folder named Labs Suppose that a university uses the following scherme to compute tuition fees. This is loosely based on how ahe U of M actually does it . Tuition costs $400 per eredit hour for each bour up to and including 12 . For each hour beyond 12, the cost is $60 per credit hour Engineering and science courses are charged an extra lab foe of $25 per credit hou Exampls l: Alvin is taking 9 hours, 3 of which are from engineering/science courses. His tuition is calculated like this ($400 per credit hour up to 12) (9 credit hours)$3600 ($25 per E/S credit hour)(3 credit hours) TOTAL S75 53675 Example 2 Brooke is taking 17 hours, 14 of which are from engineering/science courses. (Brooke is not a happy student.) Her tuition is calculated like this: ($400 per credit hour up to 12) (12 credit hours)$4800 ($60 per credit hour beyond 12) (5 credit hours) $300 ($25 per E/S credit hour) (14 credit hours) TOTAL 350 $5450 Lab Assignment 1. (4 pts) Before we write a program to do anything, it's essential that we have a good understanding of the problem we're trying to solve. One way of doing this is to start by developing a set of test cases Remember from your last lab homework that a test case is a set of program inputs that has a known output. In the lab homework, you wrote a test case after you wrote your program. Here we're going to write some test cases before we start writing the program. This technique is called test-drivern development. Writing the tests first can sometimes give insight into how to solve the probiem

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Identify the legal standards of the recruitment process.

Answered: 1 week ago