Object and class exercises

1, the date of the preparation of class MyDate, defined date. Should have several constructors, methods changeDate defined modification date (), defined showdate () output date. (20 points)

2, a write Celsius and Fahrenheit conversion classes, wherein the method of converting class methods. (20 points)

3, the preparation of a complex type, comprising entities and attributes imaginary part, as well as complex numbers, and a plurality of subtraction modulo, to output a complex character string "a + bI" (Design of Experiments) (30 minutes)

4 students write a class that includes basic information, and three student course grades, should calculate the highest score, lowest score and grade point average and methods (30 points)

Published 32 original articles · won praise 9 · views 3156

Guess you like

Origin blog.csdn.net/weixin_43501566/article/details/105113238