Bài giảng Lập trình cơ bản - truongkinhtethucpham.commai_non
Tài liệu này trình bày tổng quan về ngôn ngữ lập trình C - ngôn ngữ lập trình cơ bản mà hầu như những ai học về công nghệ thông tin cũng cần phải biết đến nó.
Bài giảng Lập trình cơ bản - truongkinhtethucpham.commai_non
Tài liệu này trình bày tổng quan về ngôn ngữ lập trình C - ngôn ngữ lập trình cơ bản mà hầu như những ai học về công nghệ thông tin cũng cần phải biết đến nó.
This document provides details about Aseel shoes, a proposed women's shoe company in Mazar-e-Sharif, Afghanistan. It outlines the company's vision, location, markets and products. Key points include plans to produce over 1,000 pairs of shoes per month targeting women across age groups. Production will utilize imported machinery to make various shoe styles. The document describes the shoe making process and necessary materials, tools, machines and staff.
The document summarizes the tanning process and associated waste characterization. It discusses:
1) The tanning process involves chemical reactions between chemicals like lime, sodium sulfide, chromium sulfate and collagen in animal skins to prevent decomposition and shrinkage.
2) The tanning process involves steps like soaking, liming, deliming, tanning with chrome, pickling and vegetable tanning. It generates wastewater at each step with high levels of BOD, TSS, pH, chromium and other pollutants.
3) The total wastewater generated from tanning 100kg of hides has a volume of 3000-3500 liters with BOD of 2000-3000 mg/l
Bata India is the largest footwear retailer and manufacturer in India, operating since 1931. It has established itself as India's largest footwear retailer through its large network of over 30,000 dealers across the country. The company operates in two segments: footwear and accessories. Bata India engages in manufacturing and distribution of footwear and accessories through its extensive retail and wholesale networks. It offers various types of footwear including leather, rubber, canvas, and plastic footwear targeted at different customer segments.
Bata India Ltd is the largest footwear retailer in India with over 1,250 stores nationwide. The company manufactures and sells footwear, accessories, and other products. Key financial highlights include revenues growing from 12.8 billion rupees to 15.5 billion rupees from 2010 to 2011. Over this period, Bata was able to reduce selling, general and administrative costs as a percentage of sales from 32.28% to 21.40%, driving bottom line growth. Bata has two subsidiaries, Bata Properties Ltd and Coastal Commercial & Exim Ltd, which are involved in real estate development and exports/imports respectively.
This document discusses the treatment of tannery wastewater. Tannery wastewater is characterized by high levels of organic matter, sulfides, and heavy metals like chromium. The treatment regime involves a combination of physical, chemical, and biological processes. This includes processes like hair recovery, chrome recovery, screening, flocculation, sedimentation, and biological treatments using aeration or lagoon systems. The goal is to reduce pollutant levels and produce an effluent that can be safely discharged or reused.
Nike is updating its supply chain policies and standards to better protect worker rights and ensure more responsible transitions for factory workers. This includes clarifying protections for freedom of association and collective bargaining. Nike is also working to develop sustainable and efficient supply chains, partnering with governments and organizations on initiatives like the UK Sustainable Clothing Action Plan to improve environmental and social impacts. Nike aims to create sustainable models of production and consumption through partnerships and engagement on policy issues.
This document discusses the history and embellishments of footwear and mentions heels, soles, fixings, and interchangeable plastic parts that allow for choice in footwear customization. Specific hybrid footwear designs are referenced along with a YouTube video providing additional information.
Gideon Shoes is an Australian company that produces handmade sneakers made from premium materials like kangaroo leather and cane toad hide. All profits from shoe sales go to supporting The Street University, a facility in Sydney that provides education and counseling to marginalized youth. The shoes are produced ethically in Australia without the use of sweatshops. Gideon Shoes had a product launch in December 2010 and are working to expand distribution across Australia, the U.S., and Europe while continuing to support charitable causes.
Nike is looking to improve its supply chain management. It aims to reduce inventory levels, increase data exchange speeds, and better meet customer demands. Nike plans to implement a new collaborative planning system to connect all parts of its global supply chain electronically. This will allow real-time sharing of production planning and order information between Nike, its suppliers, and factories. The new system is expected to help Nike deliver products with greater precision and flexibility while reducing inventory levels throughout the supply chain.
This document provides details about Aseel shoes, a proposed women's shoe company in Mazar-e-Sharif, Afghanistan. It outlines the company's vision, location, markets and products. Key points include plans to produce over 1,000 pairs of shoes per month targeting women across age groups. Production will utilize imported machinery to make various shoe styles. The document describes the shoe making process and necessary materials, tools, machines and staff.
The document summarizes the tanning process and associated waste characterization. It discusses:
1) The tanning process involves chemical reactions between chemicals like lime, sodium sulfide, chromium sulfate and collagen in animal skins to prevent decomposition and shrinkage.
2) The tanning process involves steps like soaking, liming, deliming, tanning with chrome, pickling and vegetable tanning. It generates wastewater at each step with high levels of BOD, TSS, pH, chromium and other pollutants.
3) The total wastewater generated from tanning 100kg of hides has a volume of 3000-3500 liters with BOD of 2000-3000 mg/l
Bata India is the largest footwear retailer and manufacturer in India, operating since 1931. It has established itself as India's largest footwear retailer through its large network of over 30,000 dealers across the country. The company operates in two segments: footwear and accessories. Bata India engages in manufacturing and distribution of footwear and accessories through its extensive retail and wholesale networks. It offers various types of footwear including leather, rubber, canvas, and plastic footwear targeted at different customer segments.
Bata India Ltd is the largest footwear retailer in India with over 1,250 stores nationwide. The company manufactures and sells footwear, accessories, and other products. Key financial highlights include revenues growing from 12.8 billion rupees to 15.5 billion rupees from 2010 to 2011. Over this period, Bata was able to reduce selling, general and administrative costs as a percentage of sales from 32.28% to 21.40%, driving bottom line growth. Bata has two subsidiaries, Bata Properties Ltd and Coastal Commercial & Exim Ltd, which are involved in real estate development and exports/imports respectively.
This document discusses the treatment of tannery wastewater. Tannery wastewater is characterized by high levels of organic matter, sulfides, and heavy metals like chromium. The treatment regime involves a combination of physical, chemical, and biological processes. This includes processes like hair recovery, chrome recovery, screening, flocculation, sedimentation, and biological treatments using aeration or lagoon systems. The goal is to reduce pollutant levels and produce an effluent that can be safely discharged or reused.
Nike is updating its supply chain policies and standards to better protect worker rights and ensure more responsible transitions for factory workers. This includes clarifying protections for freedom of association and collective bargaining. Nike is also working to develop sustainable and efficient supply chains, partnering with governments and organizations on initiatives like the UK Sustainable Clothing Action Plan to improve environmental and social impacts. Nike aims to create sustainable models of production and consumption through partnerships and engagement on policy issues.
This document discusses the history and embellishments of footwear and mentions heels, soles, fixings, and interchangeable plastic parts that allow for choice in footwear customization. Specific hybrid footwear designs are referenced along with a YouTube video providing additional information.
Gideon Shoes is an Australian company that produces handmade sneakers made from premium materials like kangaroo leather and cane toad hide. All profits from shoe sales go to supporting The Street University, a facility in Sydney that provides education and counseling to marginalized youth. The shoes are produced ethically in Australia without the use of sweatshops. Gideon Shoes had a product launch in December 2010 and are working to expand distribution across Australia, the U.S., and Europe while continuing to support charitable causes.
Nike is looking to improve its supply chain management. It aims to reduce inventory levels, increase data exchange speeds, and better meet customer demands. Nike plans to implement a new collaborative planning system to connect all parts of its global supply chain electronically. This will allow real-time sharing of production planning and order information between Nike, its suppliers, and factories. The new system is expected to help Nike deliver products with greater precision and flexibility while reducing inventory levels throughout the supply chain.
The document discusses the global and Indian footwear markets. The global footwear market grew 3.8% in 2005 to $159.6 billion and is forecast to reach $194.3 billion by 2010. In India, liberalization increased purchasing power and the footwear market grew 8% in 2004 to 1.8 billion pairs worth $2.4 billion. Major Indian brands include Bata, Liberty, Woodland, and Reebok. The market is shifting towards branded, casual styles and growth in sportswear, women's/kids segments.
This document provides an overview of a shoe company, outlining its history, mission, vision, strategy points, brands, competitors, and sales promotion efforts. The company prides itself on being the top expert in shoes globally and maintains a commitment to innovation and market dynamics.
Leather is created through the tanning of animal hides and skins to make them durable and flexible. The tanning process involves soaking, dehairing, bating, pickling, tanning, neutralizing, splitting, shaving, retanning, fat liquoring, drying, and finishing the hides through the use of vegetable or chromium salts to preserve the material over time. The leather manufacturing process transforms raw hides through several chemical processes and is impactful on the environment.
Analysis on shoe industry based on Porters 5 force modelAnna Varghese
This document discusses the key factors in the footwear industry including types of shoes, barriers to entry, and forces affecting competition. The five main types of shoes are athletic, boot, dress/casual, dancing, and orthopedic. Barriers to entry are high due to intellectual property protections and brand identity/loyalty. Buyer power is low while supplier power is also low. Threat of substitutes is moderate except for specialized shoes. Rivalry within the highly competitive industry is high due to emphasis on branding and non-price competition between major manufacturers.
Bata has historically positioned itself as a family footwear brand catering to middle class consumers in India. It dominated the organized footwear market until the 1980s. However, Bata now faces competition from national and international brands. To address this, Bata is repositioning itself from a manufacturing focused company to an affordable, market-driven lifestyle brand. It is overhauling store designs, expanding into malls, and launching new brands like Dr. Scholl's, Hush Puppies, and Marie Claire to target fashion-conscious consumers. Bata aims to change its image from an old-fashioned shoe seller to a modern retailer of trendy, high-quality footwear.
The document provides an overview of Reebok, including its vision statement, company overview, products offered, positioning, market share in athletic wear, competitors, SWOT analysis, and strategies. Reebok's principal business is designing and marketing high-quality footwear, apparel, and equipment worldwide. It offers a wide range of products including running shoes, sports equipment, men's and women's styles. Reebok aims to continue inspiring athletes while maintaining quality standards. The document discusses Reebok's competitors and strategies to target women, kids, and developing countries.
The document summarizes the supply chain of a shoe manufacturing firm. It describes the key suppliers and distributors, production process, target markets, product features, and strategies for the firm. The supply chain involves procuring raw materials from leather and thread suppliers. Production involves cutting, sewing, fitting, and finishing. The target market is people with diabetes in Hyderabad. Features include lightweight and breathable shoes. The strategies discussed include buyer-supplier relationships, demand forecasting, and distribution through local retailers.
ĐỀ CƢƠNG LẬP TRÌNH C LỚP CNT50DH1
Các bài tập xuất nhập giá trị Bài 1: Nhập 2 số nguyên x và y, sau đó in ra màn hình kết quả x + y, x- y, phần nguyên x chia y, phần dƣ của x cho y và phép chia của x cho y Bài làm:
Kết quả:
Bài 2: Nhập từ bàn phím tên của bạn, sau đó xuất ra câu: “Chao <ten>” trong đó ten ban là xâu mà bạn nhập vào bàn phím Bài làm:
#include <stdio.h> #include <conio.h> void main() { //Khai bao x va y la 2 so nguyen int x,y; float c; printf("Nhap x: "); scanf("%d",&x); //%d là định dạng kiểu nguyên printf("Nhap y: "); scanf("%d",&y); //&x, &y la dia chi cua bien x va bien y printf("%d + %d = %d\n",x,y,x+y); //gan %d thu nhat la x, %d thu 2 la y, thu 3 la x+y printf("%d - %d = %d\n",x,y,x-y); //ky tu \n la xuong dong tiep theo printf("%d * %d = %d\n",x,y,x*y); printf("%d / %d = %5.2f \n",x,y,(float)5/2); // %5.2f la de 5 khoang trong in x/y, trong do co 2 khoang trong in phan thap phan getch(); //cho an 1 phim de ket thuc chuong trinh }
#include <stdio.h> #include <conio.h> void main() { //Khai bao str la kieu xau do dai 30 char str[30]; printf("Ten cua ban: "); fflush(stdin); gets(str); //Không nên dùng scanf, hàm gets dùng để đọc xâu printf("Chao %s",str); //%s sẽ được gán bởi str getch(); //Chờ ấn phím bất kỳ để kết thúc }
Mọi thắc mắc, “ý kiến” xin liên hệ Đỗ Đức Hùng, ĐT: 01656.221.314 MAIL: doduchung2008@gmail.com yahoo: duc_hungcntt
1
Kết quả:
ĐỀ CƢƠNG LẬP TRÌNH C LỚP CNT50DH1
Sau đây là sự khác biệt khi ta thay lệnh gets(str) bằng scanf(“%s”,&str), kết quả in ra màn hình sẽ nhƣ sau:
Nhƣ vậy, màn hình in ra chỉ có từ “Do”
Tức là khi dùng scanf để đọc xâu, trong xâu đó có ký tự cách trống (space) thì nó sẽ dừng lại Bài 3: Nhập từ bàn phím 1 số nguyên x, 1 số thực y, sau đó in ra màn hình theo quy cách sau:
- Dòng 1, in số nguyên căn lề phải với 5 khoảng trống - Dòng 2, in số nguyên căn lề trái 5 khoảng trống - Dòng 3, in số nguyên căn phải 3 khoảng trống - Dòng 4, in số thực làm tròn 2 số thập phân - Dòng 5, in số thực với 6 khoảng trống, căn phải, làm tròn 3 chữ số thập phân - Dòng 6, in số thực 6 khoảng trống, căn trái, làm tròn theo quy cách.
Bài làm
#include <stdio.h> #include <conio.h> void main() { // Khai bao cac bien can dung int x; float y; printf("Nhap vao so nguyen x: "); scanf("%d",&x); printf("Nhap vao so thuc y: "); scanf("%f",&y); printf("%5d\n",x);
Giá 20k/lần download -Liên hệ: www.facebook.com/garmentspace Chỉ với 20k THẺ CÀO VIETTEL bạn có ngay lượt download tài liệu bất kỳ do Garment Space upload, hoặc với 100k THẺ CÀO VIETTEL bạn được truy cập kho tài liệu chuyên ngành vô cùng phong phú Liên hệ: www.facebook.com/garmentspace
Cimatron là sản phẩm cùng tên với công ty mẹ là Cimatron Group. Nó giúp lập trình và cung cấp phần mềm CAD/CAM cho các ứng dụng sản xuất, chế tạo công cụ và lập trình CNC.
1. Bài t p MicroSoft Visual Basic .NET 2005
BÀI T P L P TRÌNH VISUAL BASIC.NET 2005
Bài t p 01: T o 1 project ñ t tên Maytinh th c hi n ch c năng c a 1 máy tính ti n
hàng v i phép nhân s lư ng và ñơn giá.
Yêu c u ch c năng:
Nút Tính : Tính tích ô s lư ng và ñơn giá. Gán k t qu vào ô thành ti n
Nút Ti p : Xoá d li u ñã có trong các ô TextBox. ð t con tr ô s lư ng
Nút thoát : ðóng màn hình và gi i phóng b nh
Hư ng d n:
Project Name : MayTinh
Form
Name: frmMayTinh
Caption: May Tinh
StartUpPosition : CenterScreen
AcceptButton: cmdTinh
CancelButton: cmdThoat
TextBox
Name: txtSoLuong Tab Index: 1
Name: txtDonGia Tab index: 2
Name: txtThanhTien
Command
Name : cmdTinh Tab Index: 3
Name : cmdTiep Tab Index: 4
Name : cmdThoat Tab Index: 5
ð nh d ng toàn b Form theo m u trên, màu s c tùy ý,
Bài t p 02: T o project ñ t tên ChuviDientichHCN , th c hi n tính chu vi và di n tích
hình ch nh t.
Yêu c u:
Cho nh p chi u dài và chi u r ng c a 1 hình ch nh t.
Tính và xu t ra chu vi và di n tích c a hình ch nh t.
Không cho ngư i dùng ch nh s a giá tr c a “Chu vi” và “Di n tích”,
Canh ph i các textbox ch a s .
This is trial version
Dương Thành Ph t Trang 1
www.adultpdf.com
2. Bài t p MicroSoft Visual Basic .NET 2005
Bài t p 03: T o project ñ t tên GiaiPTBac1, th c hi n gi i và biên lu n phương trình
b c 1.
Yêu c u ch c năng:
Nút Gi i: Th c hi n gi i và bi n lu n phương trình b c 1, ô k t qu (txtketqua) cho
bi t phương trình có nghi m, vô nghi m hay vô s nghi m. Trong trư ng h p có
nghi m thì ô txtnghiem s hi n k t qu
Nút Ti p: Xoá d li u có s n trong các ô TextBox. ð t con tr ô txtHesoA
Nút thoát: ðóng màn hình (Thoát ng d ng)
Các ñ i tư ng n hi n ñúng ng c nh c a chương trình ñ ngư i s d ng
không th c hi n nh m thao tác, tr t t di chuy n (tabIndex) phù h p. G n phím t t
Enter cho nút Gi i và ESC cho nút Thóat
Bài t p 04: T o project ñ t tên GiaiPTBac2, th c hi n gi i và biên lu n phương trình
b c 2.
Yêu c u ch c năng:
Nút Gi i: Th c hi n gi i và bi n lu n phương trình b c 2, ô k t qu (txtketqua) cho
bi t phương trình có nghi m kép, có 2 nghi m, vô nghi m hay vô s nghi m. Trong
trư ng h p có nghi m thì ô txtnghiem1 và txtNghiem2 s hi n k t qu
Nút Ti p: Xoá d li u có s n trong các ô TextBox. ð t con tr ôH s A
Nút thoát: ðóng màn hình (Thoát ng d ng)
Các ñ i tư ng n hi n ñúng ng c nh c a chương trình ñ ngư i s d ng
không th c hi n nh m thao tác, tr t t di chuy n (tabIndex) phù h p. G n phím t t
Enter cho nút Gi i và ESC cho nút Thóat
Bài t p 05: T o Project Tinhtoan th c hi n tính các bài tóan sau:
frmTongDaySo Th c hi n tính t ng dãy s liên ti p t n ñ n m
This is trial version
Dương Thành Ph t Trang 2
www.adultpdf.com
3. Bài t p MicroSoft Visual Basic .NET 2005
frmGiaiThua Th c hi n tính giai th a c a 1 s nguyên n.
frmTongChanLe Th c hi n tính t ng ch n và t ng l dãy s n.
frmTimSoDao Th c hi n tìm s ñ o c a s nguyên n.
frmMain, th c hi n m 4 form tương ng trên t 4 nút l nh
Bài t p 06: T o Project Songuyento, th c hi n li t kê t t c các s nguyên t có giá tr
nh hơn N(s nguyên dương) và tính t ng c ng các s nguyên t ñã tìm ñư c dư i ñây:
Yêu c u:
- Nút Li t kê: Li t kê t t c các s nguyên t có giá tr nh hơn N và tính t ng c ng
các s nguyên t ñã tìm ñư c.
- Nút b qua : ð xóa r ng 3 textbox.
- Nút thoát : ðóng form.
This is trial version
Dương Thành Ph t Trang 3
www.adultpdf.com
4. Bài t p MicroSoft Visual Basic .NET 2005
Bài t p 07: T o project Wellcome, th c hi n hi n th và ñi u ch nh n i dung t
TextBox vào Lable, n / hi n các control tùy theo ng c nh dùng th t c ñ th c hi n.
Hư ng d n:
Phân tích tr ng thái n, hi n các Control theo t ng ng c nh như sau:
Form_Load cmdSua_Click cmdDongy_Click cmdKhong_Click
txtNoidung O X O O
cmdSua X O X X
cmdThoat X O X X
cmdDongy O X O O
cmdKhong O X O O
Private Sub frmHello_Load(. . .) Handles MyBase.Load
PhucHoi()
End Sub
Private Sub XacLap()
cmdSua.Visible = False
cmdThoat.Visible = False
txtNoidung.Visible = True
cmdDongy.Visible = True
cmdKhong.Visible = True
End Sub
Private Sub PhucHoi()
cmdSua.Visible = True
cmdThoat.Visible = True
cmdDongy.Visible = False
cmdKhong.Visible = False
txtNoidung.Visible = False
End Sub
Private Sub cmdSua_Click( . . .) Handles cmdSua.Click
XacLap()
txtnoidung.Text = lbchao.Text
txtnoidung.Focus()
txtnoidung.SelectionStart = 0
txtnoidung.SelectionLength() = Len(txtnoidung.Text)
End Sub
Private Sub cmdDongy_Click(. . . ) Handles cmdDongy.Click
lbchao.Text = txtnoidung.Text
PhucHoi()
End Sub
Private Sub cmdThoat_Click(. . . ) Handles cmdThoat.Click
Me.Close()
End Sub
Private Sub cmdKhong_Click(. . . ) Handles cmdKhong.Click
PhucHoi()
End Sub
This is trial version
Dương Thành Ph t Trang 4
www.adultpdf.com
5. Bài t p MicroSoft Visual Basic .NET 2005
Bài t p 08: T o Project PrjTinhtong, th c hi n tính “T ng dãy s ” và “T ng giai th a
dãy s ”
Yêu c u:
Các yêu c u tính toán ph i th c hi n dư i d n hàm con
Khi Set Visible các button ph i dư i d ng th t c.
Nút thoát có xu t hi n thông báo
Hư ng d n:
Function tongdayso(ByVal a As Integer, ByVal b As Integer)
Dim i As Integer, s As Long= 0
For i = a To b
s=s+i
Next
tongdayso = s
End Function
Private Sub cmdTonggiaithuadayso_Click( . . . ) Handles
cmdTonggiaithuadayso.Click
Dim n As Integer, m As Integer
n = Val(txtson.Text)
m = Val(txtsom.Text)
txtketqua.Text = tonggiaithuadayso(n, m)
End Sub
Function giaithua(ByVal k As Integer)
Dim i As Integer, s As Long = 1
For i = 1 To k
s=s*i
Next
giaithua = s
End Function
Function tonggiaithuadayso(ByVal x As Integer, ByVal y As Integer)
Dim i As Integer, s As Long = 0
For i = x To y
s = s + giaithua(i)
Next
tonggiaithuadayso = s
This is trial version
End Function
Dương Thành Ph t Trang 5
www.adultpdf.com
6. Bài t p MicroSoft Visual Basic .NET 2005
Bài t p 09: T o Project PrjUocboisochung, th c hi n tìm “Ư c s chung l n nh t ” và
“B i s chung nh nh t” c a 2 s nguyên A và B:
Yêu c u:
- Vi t hàm (Nút Tìm) tìm USCLN và BSCNN c a 2 s a và b. N u ta ch n Option
USCLN thì xu t ra k t qu ư c s chung l n nh t hay ngư c l i là b i s chung nh nh t.
- Nút b qua dùng ñ xóa r ng các Textbox.
- Nút Thoát có xu t hi n thông báo
Bài t p 10: T o m t ng d ng (PrjCalculator)
Th c hiên ch c năng như 1 máy tính b túi v i các phép toán cơ b n +,-,x,/ G m : 1
textbox ñ nh p phép toán & hi n th k t qu , 10 nút l nh tươnmg ng 10 ký s 0 9, 4
nút l nh cho 4 phép toán +, - , x, / , 1 nút = ñ k t thúc phép toán và hi n th k t qu , 1 nút
AC dùng ñ xóa n i dung trên textbox, 1 nút thoát ñ ñóng form.
HD: S d ng c u trúc l nh trình r nhánh If . . Else . . End if và Select . . . Case . . .
This is trial version
Dương Thành Ph t Trang 6
www.adultpdf.com