The document discusses arrays, including:
- Single and multidimensional arrays can store multiple values of the same type under a single variable name.
- Arrays use subscript notation (e.g. name[i]) to access individual elements.
- Programs can declare, initialize, and perform operations on array elements to solve problems involving large data sets.
At the end of this lecture students should be able to;
Describe the C arrays.
Practice the declaration, initialization and access linear arrays.
Practice the declaration, initialization and access two dimensional arrays.
Apply taught concepts for writing programs.
Introduction of arrays, Declaration of array, Initialization of array, Sorting, Multidimensional array. Some code examples that will make you clear about the concept of arrays.
https://github.com/ashim888/csit-c
At the end of this lecture students should be able to;
Describe the C arrays.
Practice the declaration, initialization and access linear arrays.
Practice the declaration, initialization and access two dimensional arrays.
Apply taught concepts for writing programs.
Introduction of arrays, Declaration of array, Initialization of array, Sorting, Multidimensional array. Some code examples that will make you clear about the concept of arrays.
https://github.com/ashim888/csit-c
Experience our free, in-depth three-part Tendenci Platform Corporate Membership Management workshop series! In Session 1 on May 14th, 2024, we began with an Introduction and Setup, mastering the configuration of your Corporate Membership Module settings to establish membership types, applications, and more. Then, on May 16th, 2024, in Session 2, we focused on binding individual members to a Corporate Membership and Corporate Reps, teaching you how to add individual members and assign Corporate Representatives to manage dues, renewals, and associated members. Finally, on May 28th, 2024, in Session 3, we covered questions and concerns, addressing any queries or issues you may have.
For more Tendenci AMS events, check out www.tendenci.com/events
Listen to the keynote address and hear about the latest developments from Rachana Ananthakrishnan and Ian Foster who review the updates to the Globus Platform and Service, and the relevance of Globus to the scientific community as an automation platform to accelerate scientific discovery.
Experience our free, in-depth three-part Tendenci Platform Corporate Membership Management workshop series! In Session 1 on May 14th, 2024, we began with an Introduction and Setup, mastering the configuration of your Corporate Membership Module settings to establish membership types, applications, and more. Then, on May 16th, 2024, in Session 2, we focused on binding individual members to a Corporate Membership and Corporate Reps, teaching you how to add individual members and assign Corporate Representatives to manage dues, renewals, and associated members. Finally, on May 28th, 2024, in Session 3, we covered questions and concerns, addressing any queries or issues you may have.
For more Tendenci AMS events, check out www.tendenci.com/events
Listen to the keynote address and hear about the latest developments from Rachana Ananthakrishnan and Ian Foster who review the updates to the Globus Platform and Service, and the relevance of Globus to the scientific community as an automation platform to accelerate scientific discovery.
Your Digital Assistant.
Making complex approach simple. Straightforward process saves time. No more waiting to connect with people that matter to you. Safety first is not a cliché - Securely protect information in cloud storage to prevent any third party from accessing data.
Would you rather make your visitors feel burdened by making them wait? Or choose VizMan for a stress-free experience? VizMan is an automated visitor management system that works for any industries not limited to factories, societies, government institutes, and warehouses. A new age contactless way of logging information of visitors, employees, packages, and vehicles. VizMan is a digital logbook so it deters unnecessary use of paper or space since there is no requirement of bundles of registers that is left to collect dust in a corner of a room. Visitor’s essential details, helps in scheduling meetings for visitors and employees, and assists in supervising the attendance of the employees. With VizMan, visitors don’t need to wait for hours in long queues. VizMan handles visitors with the value they deserve because we know time is important to you.
Feasible Features
One Subscription, Four Modules – Admin, Employee, Receptionist, and Gatekeeper ensures confidentiality and prevents data from being manipulated
User Friendly – can be easily used on Android, iOS, and Web Interface
Multiple Accessibility – Log in through any device from any place at any time
One app for all industries – a Visitor Management System that works for any organisation.
Stress-free Sign-up
Visitor is registered and checked-in by the Receptionist
Host gets a notification, where they opt to Approve the meeting
Host notifies the Receptionist of the end of the meeting
Visitor is checked-out by the Receptionist
Host enters notes and remarks of the meeting
Customizable Components
Scheduling Meetings – Host can invite visitors for meetings and also approve, reject and reschedule meetings
Single/Bulk invites – Invitations can be sent individually to a visitor or collectively to many visitors
VIP Visitors – Additional security of data for VIP visitors to avoid misuse of information
Courier Management – Keeps a check on deliveries like commodities being delivered in and out of establishments
Alerts & Notifications – Get notified on SMS, email, and application
Parking Management – Manage availability of parking space
Individual log-in – Every user has their own log-in id
Visitor/Meeting Analytics – Evaluate notes and remarks of the meeting stored in the system
Visitor Management System is a secure and user friendly database manager that records, filters, tracks the visitors to your organization.
"Secure Your Premises with VizMan (VMS) – Get It Now"
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?XfilesPro
Worried about document security while sharing them in Salesforce? Fret no more! Here are the top-notch security standards XfilesPro upholds to ensure strong security for your Salesforce documents while sharing with internal or external people.
To learn more, read the blog: https://www.xfilespro.com/how-does-xfilespro-make-document-sharing-secure-and-seamless-in-salesforce/
Software Engineering, Software Consulting, Tech Lead.
Spring Boot, Spring Cloud, Spring Core, Spring JDBC, Spring Security,
Spring Transaction, Spring MVC,
Log4j, REST/SOAP WEB-SERVICES.
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Globus
The Earth System Grid Federation (ESGF) is a global network of data servers that archives and distributes the planet’s largest collection of Earth system model output for thousands of climate and environmental scientists worldwide. Many of these petabyte-scale data archives are located in proximity to large high-performance computing (HPC) or cloud computing resources, but the primary workflow for data users consists of transferring data, and applying computations on a different system. As a part of the ESGF 2.0 US project (funded by the United States Department of Energy Office of Science), we developed pre-defined data workflows, which can be run on-demand, capable of applying many data reduction and data analysis to the large ESGF data archives, transferring only the resultant analysis (ex. visualizations, smaller data files). In this talk, we will showcase a few of these workflows, highlighting how Globus Flows can be used for petabyte-scale climate analysis.
Check out the webinar slides to learn more about how XfilesPro transforms Salesforce document management by leveraging its world-class applications. For more details, please connect with sales@xfilespro.com
If you want to watch the on-demand webinar, please click here: https://www.xfilespro.com/webinars/salesforce-document-management-2-0-smarter-faster-better/
We describe the deployment and use of Globus Compute for remote computation. This content is aimed at researchers who wish to compute on remote resources using a unified programming interface, as well as system administrators who will deploy and operate Globus Compute services on their research computing infrastructure.
Large Language Models and the End of ProgrammingMatt Welsh
Talk by Matt Welsh at Craft Conference 2024 on the impact that Large Language Models will have on the future of software development. In this talk, I discuss the ways in which LLMs will impact the software industry, from replacing human software developers with AI, to replacing conventional software with models that perform reasoning, computation, and problem-solving.
How Recreation Management Software Can Streamline Your Operations.pptxwottaspaceseo
Recreation management software streamlines operations by automating key tasks such as scheduling, registration, and payment processing, reducing manual workload and errors. It provides centralized management of facilities, classes, and events, ensuring efficient resource allocation and facility usage. The software offers user-friendly online portals for easy access to bookings and program information, enhancing customer experience. Real-time reporting and data analytics deliver insights into attendance and preferences, aiding in strategic decision-making. Additionally, effective communication tools keep participants and staff informed with timely updates. Overall, recreation management software enhances efficiency, improves service delivery, and boosts customer satisfaction.
Accelerate Enterprise Software Engineering with PlatformlessWSO2
Key takeaways:
Challenges of building platforms and the benefits of platformless.
Key principles of platformless, including API-first, cloud-native middleware, platform engineering, and developer experience.
How Choreo enables the platformless experience.
How key concepts like application architecture, domain-driven design, zero trust, and cell-based architecture are inherently a part of Choreo.
Demo of an end-to-end app built and deployed on Choreo.
Why React Native as a Strategic Advantage for Startup Innovation.pdfayushiqss
Do you know that React Native is being increasingly adopted by startups as well as big companies in the mobile app development industry? Big names like Facebook, Instagram, and Pinterest have already integrated this robust open-source framework.
In fact, according to a report by Statista, the number of React Native developers has been steadily increasing over the years, reaching an estimated 1.9 million by the end of 2024. This means that the demand for this framework in the job market has been growing making it a valuable skill.
But what makes React Native so popular for mobile application development? It offers excellent cross-platform capabilities among other benefits. This way, with React Native, developers can write code once and run it on both iOS and Android devices thus saving time and resources leading to shorter development cycles hence faster time-to-market for your app.
Let’s take the example of a startup, which wanted to release their app on both iOS and Android at once. Through the use of React Native they managed to create an app and bring it into the market within a very short period. This helped them gain an advantage over their competitors because they had access to a large user base who were able to generate revenue quickly for them.
How to Position Your Globus Data Portal for Success Ten Good PracticesGlobus
Science gateways allow science and engineering communities to access shared data, software, computing services, and instruments. Science gateways have gained a lot of traction in the last twenty years, as evidenced by projects such as the Science Gateways Community Institute (SGCI) and the Center of Excellence on Science Gateways (SGX3) in the US, The Australian Research Data Commons (ARDC) and its platforms in Australia, and the projects around Virtual Research Environments in Europe. A few mature frameworks have evolved with their different strengths and foci and have been taken up by a larger community such as the Globus Data Portal, Hubzero, Tapis, and Galaxy. However, even when gateways are built on successful frameworks, they continue to face the challenges of ongoing maintenance costs and how to meet the ever-expanding needs of the community they serve with enhanced features. It is not uncommon that gateways with compelling use cases are nonetheless unable to get past the prototype phase and become a full production service, or if they do, they don't survive more than a couple of years. While there is no guaranteed pathway to success, it seems likely that for any gateway there is a need for a strong community and/or solid funding streams to create and sustain its success. With over twenty years of examples to draw from, this presentation goes into detail for ten factors common to successful and enduring gateways that effectively serve as best practices for any new or developing gateway.
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Shahin Sheidaei
Games are powerful teaching tools, fostering hands-on engagement and fun. But they require careful consideration to succeed. Join me to explore factors in running and selecting games, ensuring they serve as effective teaching tools. Learn to maintain focus on learning objectives while playing, and how to measure the ROI of gaming in education. Discover strategies for pitching gaming to leadership. This session offers insights, tips, and examples for coaches, team leads, and enterprise leaders seeking to teach from simple to complex concepts.
3. • Symbol of array : [ ]
• Array enable a variable to store more than 1 data
• Data can be stored as integer, character, float
• Normally we stored value as variable a,b,c..
• How about if we have 1000 variables ?
• Array- A set of data with similar properties and which
are stored in consecutive memory location under
common variable name
WHAT IS ARRAY?
4. Subscript
• Array also known as subscripted variable
• General form
• Name[i], number [i][j]
• i and j is subscript
• Following rules should be followed while using subscript
• A subscript may be a valid integer
• The value of subscript is zero or positive
• A subscript must not be subscripted variable
• If a variable is used to represent an array it should not be used as
ordinary variable
5. Type of array
• Array in integer: int a[10] array ‘a’ with capacity
of 10, it able to store 10 sets of integer value.
• Array in float: float sum[5] array ‘sum’ with
capacity of 5, it able to store 5 sets of float value.
• Array in char: char no[4] array ‘no’ with capacity
of 4, it able to store 4 set of alphabet.
9. One dimensional array
• int x[10]
• Array is declared as ordinary variable, but size of the
array must be specified within the square bracket
Output
x[0] x[1] x[2] x[3] x[4]
11. Run time initialization
• Array can be initialize during execution of the
program in 2 different ways
• By using assignment statement
(+=, -=, *=, /=,%=)
• By using input statement
Output
This coding shows how we allocate
/display the one dimensional array
13. By using array function, develop a program to
store 5 different value in X array, next calculate
the average of total obtained values.
14.
15. Exercise
Write a program to store 5 digits below and perform
different arithmetic operation on these digits using
single array function:
First operation: 4/5
Second operation: 4+11/12
Third operation: 9%11
4 5 11 12 9
17. TRY THIS?
DEVELOP A PROGRAM TO SHOW STUDENT’S
TEST MARK WHEN THEIR MATRIC NO IS
TYPED USING ARRAY FUCNTION. THE
STUDENT AND THEIR MARKS ARE AS BELOW:
Array MATRIC NO TEST MARK
[0] 111 10
[1] 222 20
[2] 333 30
[3] 444 40
[4] 555 50
18.
19. #include<stdio.h>
int main()
{
int mat[ ]={111,222,333,444,555};
int arr[ ] = {10,20,30,40,50};
int i;
printf(“enter your matric number: “,i);
scanf(“%d”, &i);
mat[i]=arr[i];
printf("matrix number of %d is %d n", mat[i], arr[i]);
return 0;
}
20. Multidimensional array
• In multidimensional array the number of subscript is more than 1
• int a[i][j][k]
• The declaration is similar to one dimensional array.
• int x[3][2]
• x[0][0] x[0][1]
• x[1][0] x[1][1]
• x[2][0] x[2][1]
• The size of this array is 6
21. Set [0]
x[0][0] x[0][1]
x[1][0] x[1][1]
x[2][0] x[2][1]
The size of this array is 12
x[0][0] x[0][1]
x[1][0] x[1][1]
x[2][0] x[2][1]
The size of this array is
6
row
Example for 2D
int x[3][2]
Example for 3D
int x[2][3][2]
column row column
set
25. 2D array
Output
This coding shows relation operation in 2D array.
5 6 7
10 20 30
0
1
0 1 2
Array a
5+1 6+2 7+3
10+3 20+2 30+1
0
1
0 1 2
Array sum
1 2 3
3 2 1
0
1
0 1 2
Array b
Allocate the 2D arrays
Do the (+) operation
Example:
a[0][0]+ b[0][0]=5+1=6
a[0][1]+b[0][1]=6+2=8
… until a[1][1]+b[1][1]
26. 1 2
3 4
5 6
7 8
9 10
11 12
0
1
2
0
1
2
0 1 0 1
Set (0) Set (1)
The
arrangement of
the array
Output
For 3D array you can write like this or go to the next page
3D array
27. For 3D array you can write like this or like previous
page
3D array
28. Example
• Write a program to find the transpose matrix of order m x n;
29. • Write a program to find y= 𝑖=1
𝑛
𝑖2 and sum of y
using an array. n is defined by user
Example 1
31. Example 2
Write a program to find y= 𝑖=1
𝑛
𝑥2 and
average of y using an array. X and n is
defined by user
#include <stdio.h>
#include <math.h>
int main()
{ int i,n, sums=0,array[i], average;
printf("insert n: ");
scanf("%d",&n);
for(i=0;i<n;i++)
{ scanf("%d",&array[i]);
sums+=array[i]*array[i];
average=sums/n; }
printf("sums is %d",sums);
printf("n average= %d", average);
return 0;
}
If have this mathematical problem
𝒊=𝟏
𝒏
𝒙 , the coding must be solve
using array
Replace x with array x [i] @
array[i]
Declare sums=0 at int/float. Follow
how many sum in the question. Like
this example only have 1 sum
operation.
The coding also have to use “for”
function
Insert n 3
Max array are x[3] you have to input 3 number
Exp:
array[0] insert 2
array[1] insert 4
array[2] insert 3
Output:
i array[i] Sum+=array[i]*array[i] Average=sum/n
0 2 0+(2*2)=4 4/1=4
1 4 4+(4*4)=20 16/2=8
2 3 20+(3*3)=29 29/3=9
array[i]={2,3,4}
32. Write a program to calculate the
value of y, where xi is series of
value in data set, n is number of
values in data set and µ is mean of
all values. The values of xi, and n
are obtained from user input
#include<studio.h>
#includ<math.h>
int main()
{
int n,i, x[10],
float y, sumx sumx2, sumx3,sumx4, mean;
scanf("%d",&n);
for(i=0;i<n;i++);
{
scanf("%d",&x[i]);
sumx+=x[i]*x[i]
sumx2+=sqt(x[i]);
sumx3+=x[i];
mean=sumx3/n;
sumx4+=pow(x[i],3.0)*meanmean;
}
y=sumx/(n*sumx2)-sumx4;
prinf("y= %d",y);
return 0;
}
Example 3
Answer: Correct the error in the program and
try to run it.
y= 𝑖
𝑛
𝑥𝑖
2
𝑛 𝑖
𝑛 𝑥𝑖
1/2 − 𝑖
𝑛
𝑥𝑖
3 𝜇2
When, 𝜇 = 𝑖
𝑛
𝑥𝑖
𝑛
33. Write a program to calculate the value of y, where xi is series of value in
data set, n is number of values in data set and µ is mean of all values. The
values of xi, and n are obtained from user input
Exercise
y= 𝑖
𝑛
𝑥𝑖𝜇
𝑛3 − 𝑖
𝑛
𝑥𝑖