You are on page 1of 3

Question 1 (4.

0 Point)

1. Design the form might look something like fingue below, named java file is Q11.java

2. Design the form might look something like fingue below, named java file is Q12.java

Number 1,2,3 là giá trị của 3 cạnh tam giác, Các giá trị này phải là số dương và tổng 2 số lớn 1 số, nếu
không đúng thông báo sai còn đúng thì tính diện tích tam giác

Question 2: (4.0 Point)

Make a search Product frame look like fingure below:


When users enter Price from and Price to, do the searching and output information of a list of Products
which have Price between Price from and Price to.

Below a table has output Number of Products from searching.

create database Trading2020


go
use Trading
go
create table Categories
(
ID varchar(6) primary key,
[name] nvarchar(30) ,
describe nvarchar(50),
)
go
insert into Categories values('N','Nokia','Gon nhe, pin lau')
insert into Categories values('S','Samsung','Dang dep, nhieu chuc nang')
insert into Categories values('IP','Iphone',N'Hiện đại, chụp ảnh 10GPixel...')

create table products


(
ID varchar(8) primary key,
[name] varchar(30) ,
cat_ID varchar(6) references Categories(ID),
price float,
quantity int,
)
go
insert into products values('N8','Nokia N8','N',2300,12)
insert into products values('S72','Nokia E72','N',3200,12)
insert into products values('S2','Samsung Corby II','S',3400,8)
insert into products values('S5','Samsung E1050','S',2100,10)

Question 3: (2.0 Point)

Design the form might look something like figure below, named the java file is Q3.java

Click Countdown get current time (Start at….)


And Countdown (the number gets from textfield)
Finally, to run the clock
join()

You might also like