C语言单元作业(C language unit assignments).doc
文本预览下载声明
C语言单元作业(C language unit assignments)
Unit one formula is calculated
A triangular area of the project
Lets say that s is equal to 1 over 2ah.
Topic 2 parallelogram circumference
So lets say that c is equal to 2 times a plus b.
The cubic volume of the three cuboids
Solve for cubic volume by formula v = abh.
The volume of the fourth cylinder
According to the formula of cylinder volume v = ∏ r ^ 2 h o.
Topic 5 cone volume
According to the formula v = 1/3 ∏ r ^ 2 h o cone volume.
Subject 6 circuit power
According to the formula W = U ^ 2 / R o circuit power.
Project seven circuit power
According to the formula W = I ^ 2 r o circuit power.
Unit two - way branch
The subject is a profit commission
The bonuses paid by the company are made up according to the profits. If the profit (I) is less than or equal to 100,000 yuan, the bonus will be 10%; The profit is higher than 100,000 yuan, less than 200,000 yuan, less than 100,000 yuan and 10% commission. Between 200,000 and 400, 000 yuan, you can make up 5%. Between 400,000 and 600,000 yuan, up to $400,000, can be made up to 3%; Between 600000 and 1 million, more than 600000 yuan, can be cut by 1.5%, higher than 1 million yuan, more than 1 million yuan of 1% commission, from the keyboard input profit during the month, I should ask total bonuses?
Subject 2 electricity charges
The power supply company will charge 0.5 yuan per kilowatt hour for ordinary customers with a monthly electricity charge of less than 100 degrees; More than 100 degrees below 300 degrees for more than 0.8 yuan per degree; More than 300 degrees below 1000 degree exceeds part of the partial income 1.2 yuan; More than 1000 degree exceeds part of each degree of 2 yuan. Enter customers electricity number, ask for the amount of electricity.
The project will be exported in three weeks
Enter the first letter of the week to determine what day it is, and if the first letter is the same, keep judging the second letter.
Subject four tax collection
Assume individual inco
显示全部