Purpose:
The assignment can help student understand that some problems are well-defined whilst others are not and that some problems are more likely to result in a software-based solution. Student will know extract relevant information and determine whether it is cost-effective to attempt a computer-based solution. Students can learn that there are recognized approached to problem solving and that most of us use a combination of these approached all the time. They will understand that time-consuming and space-consuming of software is important and they need a clear strategy to minimize costs.
Background:
An important skill for a computing professional is to be able to extract relevant information and determine whether it is cost-effective to attempt a computer-based solution. Although some people are natural people-solvers, most are not and rely heavily on past experience to guide them. And some problems are well-defined whilst others are not. For example, consider the problems faced by supermarkets of how the weather affects the stock required, it’s an ill-defined problem.
Identify a problem as being typically suitable for solution by computer .A program is required which calculate the surface area and the volume of various shapes. It will also determine, from the weight of the object, whether or not it would float in water. It should offer to handle the following shapes and it should request suitable information in order to perform the calculations:
1. sphere
2. cylinder
3. cube
An object will float on water if it has a relative density (or specific gravity) of less than 1 and it will sink if its relative density is greater than 1.
Tasks:
This case study is based on calculating the surface area and the volume of various shapes. In order to complete the assignment you are required to complete the following tasks and write a program to calculate the surface area and the volume of various shapes with Java language:
1、Illustrate some problems that some are well-defined whilst others are not, Describe the techniques which solve the well-defined and ill-defined problems .(Outcome 1.1)
2、Extract the elements in the ill-defined problems which can be solved by programming.(Outcome 1.2)
3、Write a program which will calculate the surface area and the volume of various shapes and the program can determine whether the object would float or sink.(Outcome 1.3)
Input the radius data in centimeter of the sphere and the program can output the surface area and volume of the sphere
Input the weight of the sphere in grams and the program can use the volume to calculate the density of the sphere and determine whether the sphere would float or sink..
Input the radius and height data in centimeter of the cylinder and the program can output the surface area and volume of the cylinder.
Input the weight of the cylinder in grams and the program can use the volume to calculate the density of the cylinder and determine whether the cylinder would float or sink.
Input the length, width and height data in centimeter of the cube and the program can output the surface area and volume of the cube.
Input the weight of the cube in grams and the program can use the volume to calculate the density of the cube and determine whether the cube would float or sink.
4、Display all results and ensure all the results are correct .
Suggest:
1. Use C language to implement task 4-10.
2. Give necessary comments for some C statements.
3. Finding information using the Internet, journals or referential books to help you complete this assignment.
4. The program solutions are a combination of five elements: sequences, iterations, selections, state, procedures(abstraction).
Common Skills Guidance:
By completing this assignment, the student will gain knowledge and skills in understanding that some problems are well-defined whilst others are not. The assignment will demonstrate a program which solves the problem of calculating the surface area and the volume and determining whether the object would float or sink. Communicate verbally, to co-rod their activities and complete this assignment. The implemented program demonstrates the application of Appling Numeracy. By completing this assignment, the student will gain knowledge and skills in understanding C language, which will demonstrate Apply Technology and written Communication are being used.
Outcome Grade Standard
Your assignment will be graded with a Pass, Merit or Distinction depending on the criteria stated below, if it is submitted on or before the due date stated on the front page of the assignment brief. If the assignment is submitted late, then the assignment is awarded a Failed grade.
The assignment may receive a grade Referral if you do not satisfy any of the criteria stated within the assignment brief. In that case you will risk the submission of either further or totally new material, which will not receive more than a Pass grade.