Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
×
0 of .
Results for:
No results containing your search query
P. 1
codeb7

# codeb7

Ratings: 0|Views: 191|Likes:
Published by Nghĩa Zer

### More info:

Published by: Nghĩa Zer on Jun 28, 2011
Copyright:Attribution Non-commercial

### Availability:

Read on Scribd mobile: iPhone, iPad and Android.
Free download as PDF, TXT or read online for free from Scribd
See More
See less

06/28/2011

pdf

text

original

1#include <iostream>2#include <cmath>34
using

namespace
std;5

6
int
Nhc,Ihc,Imax,ihc,dihc; 7
int
i,j; 8
double
bd[7][14]; 9
double
a,b,c; 1011
int
main()12{13//Nhap lieu14
for
(i=0;i<7;i++) 15{16
for
(j=0;j<14;j++) 17{18cout<< "a["<<i<<"]["<<j<<"]="; 19cin>>bd[i][j];

20}21}22//Tim Nhc23Nhc=bd[0][0]; 24
for
(i=0;i<7;i++) 25{26
for
(j=0;j<14;j++) 27{

28
if
(bd[i][j] >Nhc) 29{30Nhc=bd[i][j]; 31}32}33}34Imax=Nhc/10; 35

//Ma tran Nhc36cout<<"bang xu ly So lieu la:"<<"\n"; 37
for
(i=0;i<7;i++) 38{39cout<<"\n\n"; 40
for
(j=0;j<14;j++) 41{

42a= ((bd[i][j])/10); 43b= ((bd[i][

j])/10)/Imax; 44c= 1/sqrt((((bd[i][j])/10)/Imax)); 45cout<<"--"<<bd[i][j]<<"--"<<a<<"--"<<b<<"--"<<c<<"\n"; 46}47}48cout<<"\n"; 49

//Ma tran ihc50cout<<"Ma tran ihc la:"<<"\n"; 51
for
(i=0;i<7;i++)

52{53cout<<"\n\n"; 54
for
(j=0;j<14;j++) 55{56b= ((bd[i][j])/10)/Imax; 57cout<<"--"

<<b;58}59}60cout<<"\n"; 61//In d
ư
ong dong muc62
for
(i=0;i<7;i++) 63{64cout<<"\n\n"; 65
for
(j=0;j

<14;j++) 66{67b= ((bd[i][j])/10)/Imax; 68
if
(b< 0.1) 69{70cout<<"--1"; 71}72
else
73{74
if
(b< 0.2) 75{76cout<< "--2"; 77}78
else
79{80
if
(b< 0.3) 81{82cout<<"--3"; 83}84
else
85{86
if
(b< 0.4) 87{88cout<<"--4"; 89}

90
else
91{92
if
(b< 0.5) 93{94cout<<"--5"; 95}

96
else
97{98
if
(b< 0.6) 99{100cout<<"--6";

## Activity (2)

### Showing

AllMost RecentReviewsAll NotesLikes
You've already reviewed this. Edit your review.
1 hundred reads|about 1 year ago
Nghĩa Zer liked this|over 2 years ago