本科实验报告课程名称:软件开发环境与工具实验报告实验项目:CASE工具PowerDesigner的使用实验地点:致远楼B501专业班级:指导教师:2013年10月22日2、转换物理模型,学生宿舍管理的PDM如下图:本科实验报告课程名称:软件开发环境与工具实验报告实验项目:搭建Visual Studio开发环境,设计Windows控制台应用程序实验地点:致远楼B303指导教师:崔秀娟2013年9月28日namespace Test2__02{class Program{static void Main(string[] args){int m=0;int n;long sum=0;Console.WriteLine("请输入n的值:");n = int.Parse(Console.ReadLine());for (int i = 1; i <= n; i++){m += i;sum += m;}Console.WriteLine("sum = {0}",sum);Console.WriteLine("请输出sum的值:{0}", sum);}}}(方法二)namespace Test2__02{class Program{static void Main(string[] args){int i, j;int n;long sum=0;Console.WriteLine("请输入n的值:");n = int.Parse(Console.ReadLine());for (i = 1; i <= n; i++)for (j = 1; j <= i; j++)sum += j;Console.WriteLine("sum = {0}",sum);Console.WriteLine("请输出sum的值:{0}", sum);}}3. using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Test2__03{class Program{static void Main(string[] args){int a, b, c;for (int i = 100; i <= 999; i++){a = i % 10;b = (i / 10) % 10;c = i / 100;if (i == a * a * a + b * b * b + c * c * c)Console.WriteLine(i);}}}}实验结果1.2.本科实验报告课程名称:软件开发环境与工具实验报告实验项目:掌握在Visual Studio 2010中进行Windows Form应用程序的设计方法实验地点:致远楼B501专业班级:指导教师:崔秀娟2013年10月10日private void button2_Click(object sender, EventArgs e){Close();//base.Dispose(true);设置“取消”按钮关闭窗体}}}2. using System;using System.Collections.Generic;using ponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace Test3__0222{public partial class Form1 : Form{public Form1(){InitializeComponent();}private void button1_Click(object sender, EventArgs e){int man, woman, child;for (man = 0; man <= 9; man++){for (woman = 0; woman <= 12; woman++){child = 36 - woman - man;if (36 == child / 2 + 3 * woman + 4 * man && child % 2 == 0) {listBox1.Items.Add(man);listBox1.Items.Add(woman);listBox1.Items.Add(child);}}}}private void Form1_Load(object sender, EventArgs e){}}}ing System;using System.Collections.Generic;using ponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace Test3__033{public partial class Form1 : Form{public Form1(){InitializeComponent();}private void button1_Click(object sender, EventArgs e) {if (listBox1.Text != "")if (!comboBox1.Items.Contains(listBox1.Text)) comboBox1.Items.Add(listBox1.SelectedItem); }}}实验结果1.用户登录窗口(2)输错三次,出现提示:3.添加内容前的窗口:添加内容后的窗口:本科实验报告课程名称:软件开发环境与工具实验报告实验项目:掌握在Visual Studio 2010中进行Web应用程序的设计方法实验地点:致远楼B501专业班级:指导教师:崔秀娟2013年10月17日</td></tr><tr><td><asp:Label ID="Label3"runat="server"Text="性别"></asp:Label><asp:RadioButtonList ID="RadioButtonList1"runat="server"><asp:ListItem>男</asp:ListItem><asp:ListItem>女</asp:ListItem><asp:ListItem>单身女博士</asp:ListItem></asp:RadioButtonList></td></tr><tr><td><asp:Label ID="Label4"runat="server"Text="年龄"></asp:Label><asp:TextBox ID="TextBox3"runat="server"Width="154px"></asp:TextBox><asp:RangeValidator ID="RangeValidator1"runat="server"ErrorMessage="超出规定范围"ControlToValidate="TextBox3"></asp:RangeValidator></td></tr><tr><td><asp:Label ID="Label5"runat="server"Text="民族"></asp:Label><asp:DropDownList ID="DropDownList1"runat="server"><asp:ListItem>汉族</asp:ListItem><asp:ListItem>回族</asp:ListItem><asp:ListItem>维吾尔族</asp:ListItem><asp:ListItem>满族</asp:ListItem></asp:DropDownList></td></tr><tr><td><asp:Label ID="Label6"runat="server"Text="职称"></asp:Label><asp:DropDownList ID="DropDownList2"runat="server"><asp:ListItem>初级</asp:ListItem><asp:ListItem>中级</asp:ListItem><asp:ListItem>高级</asp:ListItem></asp:DropDownList></td></tr><tr><td><asp:Label ID="Label7"runat="server"Text="职务"></asp:Label><asp:DropDownList ID="DropDownList3"runat="server"><asp:ListItem>老师</asp:ListItem><asp:ListItem>主任</asp:ListItem><asp:ListItem>校长</asp:ListItem></asp:DropDownList></td></tr><tr><td><asp:Label ID="Label8"runat="server"Text="教龄"></asp:Label><asp:TextBox ID="TextBox4"runat="server"Width="154px"></asp:TextBox><asp:RangeValidator ID="RangeValidator2"runat="server"ErrorMessage="超出规定范围"ControlToValidate="TextBox4"> </asp:RangeValidator></td></tr><tr><td><asp:Button ID="Button1"runat="server"Text="注册"/><asp:Button ID="Button2"runat="server"Text="重新输入"/> </td></tr></table></div></form></body></html>2. <%@Page Language="C#"AutoEventWireup="true"CodeBehind="WebForm1.aspx.cs" Inherits="jsaf.WebForm1" %><!DOCTYPE html><html xmlns="/1999/xhtml"><head runat="server"><meta http-equiv="Content-Type"content="text/html; charset=utf-8"/> <title>用户登录界面</title><style type="text/css">.style1{width: 362px;}.style2{width: 126px;}.style3{width: 126px;height:28px;}.style4{width: 362px;height:28px;}</style></head><body><form id="form1"runat="server"><div style="background-color:#ff00dc;border:1px solid#33CCFF; width:500px;"><div style="color:#FF8C00; font-size:25px; text-align:center;font-family:宋体;font-weight:bold; background-color:#79edad;"align="center">用户登录</div><table width="100%"bgcolor="green"style="height: 93px"align="center"> <tr><td style="background-color:#33CCFF"class="style3"align="right"><asp:Label ID="Label1"runat="server"Text="用户名"Style="color:#3333CC;font-weight:700;"></asp:Label></td><td class="style4"><asp:TextBox ID="TextBox1"runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1"runat="server"ErrorMessage="用户名不能为空"ControlToValidate="TextBox1"></asp:RequiredFieldValidator></td></tr><tr><td style="background-color:#33CCFF"class="style2"align="right"><asp:Label ID="Label2"runat="server"Text="口令"Style="color:#3333CC;font-weight:700;"></asp:Label></td><td class="style1"><asp:TextBox ID="TextBox2"runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2"runat="server"ErrorMessage="口令不能为空"ControlToValidate="TextBox2"></asp:RequiredFieldValidator></td></tr><tr><td colspan="2"align="center"><asp:Button ID="Button1"runat="server"Text="登录"Height="25px"style="font-weight:700;color:#366344;background-color:#e7efff"Width="61px"/></td></tr></table></form></body></html>实验结果:1.。