The document contains the details of a laboratory manual for a programming course. It lists 16 programming tasks to be completed under two parts - Part A and Part B. It includes tasks like printing the reverse of a number, checking if a matrix is an identity matrix, finding the Fibonacci series, sorting arrays, file handling and more. Each task has the aim, algorithm and sample code. The document also has fields for date, topic, page number and marks for each task.
Hi, I’m Dr. Jilesh !A professional spell caster,
– Expert in Hoodoo / conjure works, Angelic Healer (Academy of Ancient Magick)
-Tarot Reader, Psychotherapist, Reiki Grand Master 9th degree (Authorized instructor and trainer)
Check this link
Chapter 8Exercise1.Design an application that accept.docxtiffanyd4
Chapter 8
Exercise
1.
Design an application that accepts 10 numbers and displays them in descending order.
4. The village of Ringwood conducted a census and created records that contain household data, including income. Ringwood has exactly 75 households. Write a program into which a village statistician can enter each of the 75 household income values, and determine the mean and median house-hold income.
13. Your student disk contains fi les named DEBUG08- 01. txt, DEBUG08- 02. txt, and DEBUG08- 03. txt. Each fi le starts with some comments that describe the problem. Comments are lines that begin with two slashes (//). Following the comments, each fi le contains pseudocode that has one or more bugs you must fi nd and correct.
08-01
// This application reads 10 numbers
// and sorts them, and displays the three highest numbers
start
Declarations
num SIZE = 10
num number
num numbers[SIZE]
num count
getReady()
while count < SIZE
detailLoop()
endwhile
finish()
stop
getReady()
output "Enter a number "
input number
return
detailLoop()
numbers[SIZE] = number
count = count + 1
output "Enter a number "
input number
return
finish()
sort()
output "The highest three are ", numbers[0], numbers[0], numbers[0]
return
sort()
num x = 0
num y = 0
num COMPS = count - 1
while y < COMPS
x = 0
while x < COMPS
if numbers[x] < numbers[x + 1] then
swap()
endif
x = x + 1
endwhile
y = y + 1
endwhile
return
swap()
num temp
temp = numbers[x + 1]
numbers[x + 1] = numbers[x]
numbers[x] = temp
return
08-02
// This application reads student typing test data
// including number of errors on the test, and the number
// of words typed per minute. Grades are assigned based
// on the following table:
//
Errors
// Speed
0
1
2 or more
// 0–30
C
D
F
// 31–50
C
C
F
// 51–80
B
C
D
// 81–100
A
B
C
// 101 and up
A
A
B
start
Declarations
num MAX_ERRORS = 2
num errors
num wordsPerMinute
num grades[5][3] = {"C", "D", "F"},
{"C", "C", "F"},
{"B", "C", "D"},
{"A", "B", "C"},
{"A", "A", "B"}
num LIMITS = 5
num speedLimits[LIMITS] = 0, 31, 51, 81, 101
num row
output "Enter number of errors on the test "
input errors
if errors = MAX_ERRORS then
errors > MAX_ERRORS
endif
output "Enter the speed in words per minute "
input wordsPerMinute
while row < LIMITS AND wordsPerMinute >= speedLimits[row]
row = row + 1
endwhile
row = row - 1
output "Your grade is ", grades[errors][row]
stop
08-03
This application reads sales data for an automobile dealership.
// Up to 100 sale amounts can be entered. The entered sale amounts
// are sorted so the median sale can be displayed.
start
Declarations
num SIZE = 100
num QUIT = 99999
num saleAmount
num sales[SIZE]
num count = 0
num middlePosition
num x
num y
num temp
num comps
getReady()
while saleAmount count < SIZE
detailLoop()
endwhile
finish()
stop
getReady()
output "Enter sale amount "
input saleAmount
return
detailLoop()
sales[x] = saleAmount
co.
Hi, I’m Dr. Jilesh !A professional spell caster,
– Expert in Hoodoo / conjure works, Angelic Healer (Academy of Ancient Magick)
-Tarot Reader, Psychotherapist, Reiki Grand Master 9th degree (Authorized instructor and trainer)
Check this link
Chapter 8Exercise1.Design an application that accept.docxtiffanyd4
Chapter 8
Exercise
1.
Design an application that accepts 10 numbers and displays them in descending order.
4. The village of Ringwood conducted a census and created records that contain household data, including income. Ringwood has exactly 75 households. Write a program into which a village statistician can enter each of the 75 household income values, and determine the mean and median house-hold income.
13. Your student disk contains fi les named DEBUG08- 01. txt, DEBUG08- 02. txt, and DEBUG08- 03. txt. Each fi le starts with some comments that describe the problem. Comments are lines that begin with two slashes (//). Following the comments, each fi le contains pseudocode that has one or more bugs you must fi nd and correct.
08-01
// This application reads 10 numbers
// and sorts them, and displays the three highest numbers
start
Declarations
num SIZE = 10
num number
num numbers[SIZE]
num count
getReady()
while count < SIZE
detailLoop()
endwhile
finish()
stop
getReady()
output "Enter a number "
input number
return
detailLoop()
numbers[SIZE] = number
count = count + 1
output "Enter a number "
input number
return
finish()
sort()
output "The highest three are ", numbers[0], numbers[0], numbers[0]
return
sort()
num x = 0
num y = 0
num COMPS = count - 1
while y < COMPS
x = 0
while x < COMPS
if numbers[x] < numbers[x + 1] then
swap()
endif
x = x + 1
endwhile
y = y + 1
endwhile
return
swap()
num temp
temp = numbers[x + 1]
numbers[x + 1] = numbers[x]
numbers[x] = temp
return
08-02
// This application reads student typing test data
// including number of errors on the test, and the number
// of words typed per minute. Grades are assigned based
// on the following table:
//
Errors
// Speed
0
1
2 or more
// 0–30
C
D
F
// 31–50
C
C
F
// 51–80
B
C
D
// 81–100
A
B
C
// 101 and up
A
A
B
start
Declarations
num MAX_ERRORS = 2
num errors
num wordsPerMinute
num grades[5][3] = {"C", "D", "F"},
{"C", "C", "F"},
{"B", "C", "D"},
{"A", "B", "C"},
{"A", "A", "B"}
num LIMITS = 5
num speedLimits[LIMITS] = 0, 31, 51, 81, 101
num row
output "Enter number of errors on the test "
input errors
if errors = MAX_ERRORS then
errors > MAX_ERRORS
endif
output "Enter the speed in words per minute "
input wordsPerMinute
while row < LIMITS AND wordsPerMinute >= speedLimits[row]
row = row + 1
endwhile
row = row - 1
output "Your grade is ", grades[errors][row]
stop
08-03
This application reads sales data for an automobile dealership.
// Up to 100 sale amounts can be entered. The entered sale amounts
// are sorted so the median sale can be displayed.
start
Declarations
num SIZE = 100
num QUIT = 99999
num saleAmount
num sales[SIZE]
num count = 0
num middlePosition
num x
num y
num temp
num comps
getReady()
while saleAmount count < SIZE
detailLoop()
endwhile
finish()
stop
getReady()
output "Enter sale amount "
input saleAmount
return
detailLoop()
sales[x] = saleAmount
co.
Hierarchical Digital Twin of a Naval Power SystemKerry Sado
A hierarchical digital twin of a Naval DC power system has been developed and experimentally verified. Similar to other state-of-the-art digital twins, this technology creates a digital replica of the physical system executed in real-time or faster, which can modify hardware controls. However, its advantage stems from distributing computational efforts by utilizing a hierarchical structure composed of lower-level digital twin blocks and a higher-level system digital twin. Each digital twin block is associated with a physical subsystem of the hardware and communicates with a singular system digital twin, which creates a system-level response. By extracting information from each level of the hierarchy, power system controls of the hardware were reconfigured autonomously. This hierarchical digital twin development offers several advantages over other digital twins, particularly in the field of naval power systems. The hierarchical structure allows for greater computational efficiency and scalability while the ability to autonomously reconfigure hardware controls offers increased flexibility and responsiveness. The hierarchical decomposition and models utilized were well aligned with the physical twin, as indicated by the maximum deviations between the developed digital twin hierarchy and the hardware.
Welcome to WIPAC Monthly the magazine brought to you by the LinkedIn Group Water Industry Process Automation & Control.
In this month's edition, along with this month's industry news to celebrate the 13 years since the group was created we have articles including
A case study of the used of Advanced Process Control at the Wastewater Treatment works at Lleida in Spain
A look back on an article on smart wastewater networks in order to see how the industry has measured up in the interim around the adoption of Digital Transformation in the Water Industry.
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...Amil Baba Dawood bangali
Contact with Dawood Bhai Just call on +92322-6382012 and we'll help you. We'll solve all your problems within 12 to 24 hours and with 101% guarantee and with astrology systematic. If you want to take any personal or professional advice then also you can call us on +92322-6382012 , ONLINE LOVE PROBLEM & Other all types of Daily Life Problem's.Then CALL or WHATSAPP us on +92322-6382012 and Get all these problems solutions here by Amil Baba DAWOOD BANGALI
#vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore#blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #blackmagicforlove #blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #Amilbabainuk #amilbabainspain #amilbabaindubai #Amilbabainnorway #amilbabainkrachi #amilbabainlahore #amilbabaingujranwalan #amilbabainislamabad
Immunizing Image Classifiers Against Localized Adversary Attacksgerogepatton
This paper addresses the vulnerability of deep learning models, particularly convolutional neural networks
(CNN)s, to adversarial attacks and presents a proactive training technique designed to counter them. We
introduce a novel volumization algorithm, which transforms 2D images into 3D volumetric representations.
When combined with 3D convolution and deep curriculum learning optimization (CLO), itsignificantly improves
the immunity of models against localized universal attacks by up to 40%. We evaluate our proposed approach
using contemporary CNN architectures and the modified Canadian Institute for Advanced Research (CIFAR-10
and CIFAR-100) and ImageNet Large Scale Visual Recognition Challenge (ILSVRC12) datasets, showcasing
accuracy improvements over previous techniques. The results indicate that the combination of the volumetric
input and curriculum learning holds significant promise for mitigating adversarial attacks without necessitating
adversary training.
Overview of the fundamental roles in Hydropower generation and the components involved in wider Electrical Engineering.
This paper presents the design and construction of hydroelectric dams from the hydrologist’s survey of the valley before construction, all aspects and involved disciplines, fluid dynamics, structural engineering, generation and mains frequency regulation to the very transmission of power through the network in the United Kingdom.
Author: Robbie Edward Sayers
Collaborators and co editors: Charlie Sims and Connor Healey.
(C) 2024 Robbie E. Sayers
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdffxintegritypublishin
Advancements in technology unveil a myriad of electrical and electronic breakthroughs geared towards efficiently harnessing limited resources to meet human energy demands. The optimization of hybrid solar PV panels and pumped hydro energy supply systems plays a pivotal role in utilizing natural resources effectively. This initiative not only benefits humanity but also fosters environmental sustainability. The study investigated the design optimization of these hybrid systems, focusing on understanding solar radiation patterns, identifying geographical influences on solar radiation, formulating a mathematical model for system optimization, and determining the optimal configuration of PV panels and pumped hydro storage. Through a comparative analysis approach and eight weeks of data collection, the study addressed key research questions related to solar radiation patterns and optimal system design. The findings highlighted regions with heightened solar radiation levels, showcasing substantial potential for power generation and emphasizing the system's efficiency. Optimizing system design significantly boosted power generation, promoted renewable energy utilization, and enhanced energy storage capacity. The study underscored the benefits of optimizing hybrid solar PV panels and pumped hydro energy supply systems for sustainable energy usage. Optimizing the design of solar PV panels and pumped hydro energy supply systems as examined across diverse climatic conditions in a developing country, not only enhances power generation but also improves the integration of renewable energy sources and boosts energy storage capacities, particularly beneficial for less economically prosperous regions. Additionally, the study provides valuable insights for advancing energy research in economically viable areas. Recommendations included conducting site-specific assessments, utilizing advanced modeling tools, implementing regular maintenance protocols, and enhancing communication among system components.
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)MdTanvirMahtab2
This presentation is about the working procedure of Shahjalal Fertilizer Company Limited (SFCL). A Govt. owned Company of Bangladesh Chemical Industries Corporation under Ministry of Industries.
Gen AI Study Jams _ For the GDSC Leads in India.pdf
C_Lab Manual_Part A.docx
1. RATHINAM COLLEGE OF ARTS AND SCIENCE
(AUTONOMOUS)
Eachanari, Coimbatore-21
Laboratory Manual
Degree & Branch B.Sc. (CTIS) B.Sc. IT (DS) & BCA (AI)
Course Code
Course Title Programming in C
2. Index
S.No Date Topic Name
Page
Number
Marks
(20)
PART A
1 Printing the Reverse of a Number
2 Printing the Odd and Even Series of a N Numbers
3 Get a string and convert the lowercase to uppercase
and vice--versa using getchar() and putchar().
4 Input a string and find the number of each of the
vowels appear in the string.
5 Printing the reverse of a string
6 Accept N words and make it as a sentence by inserting
blank spaces and a full stop at the end.
PART B
1 Searching an element in an array using pointers
2
Checking whether the given matrix is an identity
matrix or not
3
Finding the first N terms of Fibonacci series
4
Declare 3 pointer variables to store a character, a
character string and an integer respectively.
Input values into these variables. Display the address
and the contents of each variable
5
Define a structure with three members and display the
same
6
Declare a union with three members of type integer,
char, string and illustrate the use of union
7
Recursive program to find the factorial of an integer
8
Finding the maximum of 4 numbers by defining a
macro for the maximum of two numbers
9
Arranging N numbers in ascending and in descending
order using bubble sort.
3. S.No Date Topic Name
Page
Number
Marks
(20)
10
Addition and subtraction of two matrices
11
Multiplication of two matrices
12
Converting a hexadecimal number into its binary
equivalent.
13
Check whether the given string is a palindrome or not.
14
Demonstration of bitwise operations
15
Applying binary search to a set of N numbers by using
a function
16
Create a sequential file with three fields: empno,
empname, empbasic. Print all the details in a
neat format by adding 500 to their basic salary
Average Marks
4. Write a C Program to print Reverse of a given number
AIM:
Write a C Program to print Reverse of a given number
ALGORITHM:
1. Start the program
2. Ask the user to enter any number.
3. Declare and initialize another variable reversed with 0, where reversed an integer
variable.
4. Get the last digit of the given number by performing the modulo division (%) and
store the value in last_digit variable, likey last_digit= number % 10.
5. Multiply reversed by 10 and add last_digit, like reversed = reversed*10 + last_digit.
6. Divide numbered by 10, like numbered/10.
7. Repeat the steps 3 to 5 till numbered is not equal to (or greater than) zero.
8. Stop the program
6. Write a C Program to Print the Odd and Even Series of a N Numbers
AIM:
Write a C Program to Print the Odd and Even Series of a N Numbers
ALGORITHM:
Step 1: Start
Step 2: [ Take Input ] Read: Number
Step 3: Check: If Number%2 == 0 Then
Print : N is an Even Number.
Else
Print : N is an Odd Number.
Step 4: Exit
7. PROGRAM:
RESULT:
Thus, a C Program for printing the odd and even series of a N numbers is completed
and run successfully
8. Write a C Program to get a string and convert the lowercase to uppercase and vice--versa
using getchar() and putchar().
AIM:
Write a C Program to get a string and convert the lowercase to uppercase and vice--
versa using getchar() and putchar().
ALGORITHM:
Step 1: Start the program
Step 2: Read char size of array str[15] and int i
Step 3: Specify the condition for while loop
Step 4: If string is capital
print str[i]+32
Else
Print s[i]-32
Step 5: increment the character i++
Step 6: print the string
Step 7: Exit the program
9. PROGRAM:
RESULT:
Thus, a C Program for getting a string and convert the lowercase to uppercase and vice--
versa using getchar() and putchar().s completed and run successfully
10. Write a C Program to input a string and find the number of each of the vowels appear in the
string.
AIM:
Write a C Program to input a string and find the number of each of the vowels appear in the
string.
ALGORITHM:
1. Start the program
2. set the count to 0
3. Loop through the string until it reaches a null character.
4. Compare each character to the vowels a, e, i o, and u.
5. If both are equal
6. Increase the count by one.
7. Print the count at the end.
8. Stop the program
11. RESULT:
Thus, a C Program for input a string and find the number of each of the vowels appear
in the string.is completed and run successfully
12. Write a C Program to Printing the reverse of a string
AIM:
Write a C Program to Printing the reverse of a string
ALGORITHM:
1. Start the program
2. Declare all the variables ( integer and character type )
3. Enter the string to be reversed
4. Find out the length of string
5. Swap the position of array element using loop
6. Store the swapped position
7. Print the reversed string as console output
8. Stop the program
13. PROGRAM:
RESULT:
Thus, a C Program for performing reversal of a string is completed and run
successfully
14. Write a C Program to accept N words and make it as a sentence by inserting blank spaces and a
full stop at the end.
AIM:
Write a C Program to accept N words and make it as a sentence by inserting blank spaces and a
full stop at the end.
ALGORITHM:
15. PROGRAM:
RESULT:
Thus, a C Program for accept N words and make it as a sentence by inserting blank
spaces and a full stop at the end is completed and run successfully