1) Write a function reverse(A) which takes a matrix A of arbitrary dimensions as input and returns a matrix B consisting of the columns of A in reverse order. Thus for example, if
A = 1 2 3 then B = 3 2 1
4 5 6 6 5 4
7 8 9 9 8 7
Write a main program to call reverse(A) for the matrix A = magic(5). Print to the screen both A and reverse(A).
2) Write a program which accepts an input k from the keyboard, and which prints out the smallest fibonacci number that is at least as large as k. The program should also print out its position in the fibonacci sequence. Here is a sample of input and output:
Enter k>0: 100
144 is the smallest fibonacci number greater than or equal to 100.
It is the 12th fibonacci number.
PlotSphereIntensity(azimuth, elevation)
PlotSphereIntensity(azimuth, elevation, intensity)
h = PlotSphereIntensity(...)
Plots the intensity (as color) of a number of points on a unit sphere.
Input:
azimuth (phi), in degrees
elevation (theta), in degrees
intensity (optional, if not provided, a green sphere is produced)
All inputs must be vectors or matrices of the same size. Data does not have to be evenly spaced. When there aren t enough points to draw a smooth sphere, additional points (with color) are interpolated.
Output:
h - a handle to the patch object
The axes are also plotted:
positive x axis is red
positive y axis is green
positive z axis is blue
基于J2EE的物流信息系統的設計與實現
介紹了J2EE 體系結構、Mv c模式等相關概念和技術,并重點探討了
目 前比 較受歡迎的三種開源框架( s t r ut s框架、S Pr i n g框架和H i b e m a t e 框架)。
分析了他們的體系結構、 特點和優缺點。 根據J ZE E的分層結構,結合We b應用
的特點, 將三種框架進行組合設計, 即表現層用S t r ut s框架、 業務邏輯層用S P ri n g
框架、持久層用比b ema t e 框架,從而來構建物流信息系統。這種整合框架使各
層相對獨立, 減少各層之間的禍合程度,同時加快了系統的開發過程,增強了系
統的可維護性和可擴展性,初步達到了分布式物流信息系統的設計目標。
經過以上分析,結合物流系統的業務需求,進行了相關的實現。最后,系統
運用先進的A ja x技術來增強Ui層與服務器的異步通信能力, 使用戶體驗到動態
且響應靈 敏的桌 面級w e b應用程序。 通過江聯公司的試運行結果,系統達到了
渝瞇。 并 且 對 江 聯 公 司 提 出 了 基 于 R F I D 的 解 決 方 案 的 實 施 計 劃 。
對于給定的一組進程,采用優先級加時間片輪轉法進行調度。設有一個就緒隊列,就緒進程按優先數(優先數范圍0-100)由小到大排列(優先數越小,級別越高)。當某一進程運行完一個時間片后,其優先級應下調(如優先數加3),試對如下給定的一組進程給出其調度順序。每當結束一進程時要給出當前系統的狀態(即顯示就緒隊列)。這里,進程可用進程控制塊(PCB)表示為如右表所示。
進程名 A B C D E F G H J K L M
到達時間 0 1 2 3 6 8 12 12 12 18 25 25
服務時間 6 4 10 5 1 2 5 10 4 3 15 8
ASP個人聊天系統
If MenuSwf="" Then MenuSwf="About"
select case lcase(MenuSwf)
case "about"
TopMenu="a"
case "news"
TopMenu="b"
case "project"
TopMenu="c"
case "clients"
TopMenu="e"
case "contact"
TopMenu="f"
case "mainbinner"
TopMenu="g"
case "person"
TopMenu="h"
T-kernel 的extension源代碼,是日本最著名的T-kernel所獨有的,適合開發T-kernel的朋友們使用!
TK/SE is the program that extends T-Kernel and provides the functions such as a file system and a process management.
The TK/SE archive to be provided is comprised of the main portion and the 2 extended file system portions, and TK/SE object is built by adding these to T-Kernel source.
a) tkernel_se_1.00.00.tar.gz Main source of T-Kernel/SE
b) extfs_fatfs_1.00.00.tar.gz Difference source of T-Kernel/SE extended file system (FAT)
c) extfs_cdrom_1.00.00.tar.gz Difference source of T-Kernel/SE extended file system (CD-ROM)
Laser Control is a java program that using a webcam detects when a laser pointer is in a specified hotspot and then does the equivalent of pressing a specified keyboard key. thus controlling Media Portal through it s hot keys. the hotspots can be set by the user as well as the actions taken. Make your wall into a remote controll.