Software Engineering Personal Assignment 02

Source: Internet
Author: User
Tags net time

Design ideas:

1. Building the most basic framework is the content of the first assignment

2. Add whether there is multiplication function, if the setting is not multiplication, let the parameters representing the multiplication equal to the parameters of the addition and subtraction respectively

3. Add the parentheses function, first randomly generate a number of 1~10 to represent a few number of participating operations, in the set 10 random number, the preceding few numbers participate in the operation with a few random numbers. I only think about supporting a few arithmetic parts, about parentheses I've been thinking for a long time and tried some methods without success.

4. Add the Value range feature, which can be simply added to the part of the random number generation

5. Add and subtract whether there is a negative function, if there is no negative number, the value after the reduction is less than 0, if less than 0 to make two number exchange can

6. Add Division whether the number of functions, if there is no remainder to determine whether the value after the addition of the remainder, if any, then let dividend plus divisor minus the residue

7. Add check repeat function, set up the array storage random generation number and operator, each produced a problem is compared with the previous, if there is the same loop does not output and let the loop more than once

Program Source code:

Results:

Project Plan Summary:

date lectures programming reading textbooks daily Total
Sunday        
Monday 100min 60min   160min
Tuesday     120min 120min
Wednesday        
Thursday        
Friday   60min   60min
Saturday   320min   320min
Week total 100min 420min 120min 660min

Time log:

Date Start time End time Interrupt Time NET time Activities Note
3/14 8:00 9:50 10min 100min Class
15:00 16:00 60min Programming Perfecting the insufficient part of the first job
3/15 14:00 16:00 120min Design Read data structure related content, and write design ideas
3/18 21:00 22:00 60min Programming

Write the basic architecture of the first assignment in Java C + +

(In fact, I think C + + can apply data structure

Content to implement adding parentheses, and later found not)

3/19 9:30 16:00 70min 320min Programming Add Features

Bug log:

Date Number Type Introduction phase Exclusion phase Repair time Fixing defects
3/19 1 10 Coding Compile 10min

Description: At first I used a for loop to output, check the heavy section if the duplicate,

It's going to be a loop, so I'll change it.

2 100 Coding Coding 10min

Description: Check the weight section of the code location adjustment, because the method I add features will

Change the value of the original randomly generated number

Software Engineering Personal Assignment 02

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.