Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Chapter II of Modern Software Engineering [personal skills] exercise and discussion

Shulou Source: shulou.com Published: 2022-06-03 06:24:13 09月20日 Update

1 basic homework: start with Hello World

Each reader (or student) is required to start managing their own source code:

Everyone has a VSTS client, the system administrator creates a TFS project for everyone, and each student is the administrator of their own project.

Each student applies for a GitHub [I] project and stores source programs and other documents.

The following exercises can be used to practice students' basic programming skills.

(1) all use command line tools and notepad editors, without Visual Studio and other integrated editing environment, each manually create and compile a C command line program: "Hello World".

(2) practice numerical calculation. Find the maximum value of the sum of the subarrays of an integer array, for example: array [1,-2, 3, 5,-1] and return 8 (because the subarray that meets the requirements is [3,5]). The array [1,-2, 3 minutes-8, 5, 1] returns 6 (because the subarray that meets the requirements is [5, 1]); the array [1,-2, 3] returns 7 (because the subarray that meets the requirements is [3 leman 2, 5, 1]).

(3) string operation. Reverse the order of the words in an English sentence and output them. For example, if the input of the program is "how are you", it returns "you are how".

(4) use the tool Visual Studio to create a C++ or C # Windows program that displays "Hello World" in the main window, and the user can drag "Hello World" to move in the main window.

(5) many students can write a lot of programs themselves, but they often can't understand the programs written by others, which also requires practice. Answer the following questions without the help of your computer (as shown in listing 2-8).

Code listing 2-8

Using System;using System.Collections.Generic;using System.Text; namespace FindTheNumber {class Program {static void Main (string [] args) {int [] rg = {2 Int64 3 (string [] args) {int [] rg = {2) Int64 I = 1; I < Int64.MaxValue; I +) {int hit = 0; int hit1 =-1; int hit2 =-1 For (int j = 0; (j < rg.Length) & & (hit

Tags: Programs performance arrays questions students tools computers analysis time assignments management code commands programmers projects surveys runs software students colleges Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn OPPO Reno Shulou Technology NVidia MySQL