From 6d04743b184b053bbc7a50a5c6aeb30f652bf707 Mon Sep 17 00:00:00 2001 From: "eclos@2002" Date: Tue, 4 Oct 2022 00:29:15 +0530 Subject: [PATCH 1/3] new commit --- .../GettingStarted/p1.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/p1.cpp diff --git a/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/p1.cpp b/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/p1.cpp new file mode 100644 index 00000000..cb1d75cc --- /dev/null +++ b/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/p1.cpp @@ -0,0 +1,10 @@ +#include +int main(){ + int n; + std::cin>>n; + for(int j=0;j Date: Tue, 4 Oct 2022 02:05:23 +0530 Subject: [PATCH 2/3] .. --- .../GettingStarted/{p1.cpp => patterns1.cpp} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/{p1.cpp => patterns1.cpp} (100%) diff --git a/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/p1.cpp b/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/patterns1.cpp similarity index 100% rename from IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/p1.cpp rename to IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/patterns1.cpp From c4a3da4b109700525642b41fa6718c33ec977e66 Mon Sep 17 00:00:00 2001 From: "eclos@2002" Date: Fri, 7 Oct 2022 23:36:34 +0530 Subject: [PATCH 3/3] submission --- .../GettingStarted/InvertedBar.cpp | 23 +++++++++++++++++++ .../GettingStarted/grading_system.cpp | 22 ++++++++++++++++++ .../GettingStarted/reverse_an_array.cpp | 13 +++++++++++ .../GettingStarted/span_of_array.cpp | 14 +++++++++++ 4 files changed, 72 insertions(+) create mode 100644 IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/InvertedBar.cpp create mode 100644 IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/grading_system.cpp create mode 100644 IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/reverse_an_array.cpp create mode 100644 IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/span_of_array.cpp diff --git a/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/InvertedBar.cpp b/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/InvertedBar.cpp new file mode 100644 index 00000000..7c00bc21 --- /dev/null +++ b/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/InvertedBar.cpp @@ -0,0 +1,23 @@ +#include +using namespace std; +int main() { + int n, m=0; + cin>>n; + int a[n]; + for(int i=0;i>a[i]; + if(a[i]>m) + m=a[i]; + } + for(int i=0;i +#include +using namespace std; +int main() { + int n; + cin>>n; + if(n>90){ + cout<<"excellent"; + } + else if(n>80 && n<=90){ + cout<<"good"; + } + else if(n>70 && n<=80){ + cout<<"fair"; + } + else if(n>60 && n<=70){ + cout<<"meets expectations"; + } + else if(n<=60){ + cout<<"below par"; + } +} diff --git a/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/reverse_an_array.cpp b/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/reverse_an_array.cpp new file mode 100644 index 00000000..15cbbbbc --- /dev/null +++ b/IOT/eclos-2002_shiv_2125csit1121_2/GettingStarted/reverse_an_array.cpp @@ -0,0 +1,13 @@ +#include +using namespace std; +int main() { + int n; + cin>>n; + int a[n], b[n]; + for(int i=0;i>a[i]; + for(int i=0;i +using namespace std; +int main() { + int n,a,m=0,k=2147483647; + cin>>n; + for(int i=0;i>a; + if(a>m) + m=a; + if(a