Program to check prime number, Print next prime number
write a program to print next prime number suppose you enter 6 then print next prime number that is 7
// All_tasks.cpp
C++ program: gather 4 tasks programmers
task(1) shows the sizes of all variables in C++ in bytes
task(2) ordering numbers: even, odd & prime (descending-ascending)
task(3) factorial
task(4) shows the day of the week by date given.
programming C++.
using functions
Program to check prime number, Print next prime number
write a program to print next prime number suppose you enter 6 then print next prime number that is 7
// All_tasks.cpp
C++ program: gather 4 tasks programmers
task(1) shows the sizes of all variables in C++ in bytes
task(2) ordering numbers: even, odd & prime (descending-ascending)
task(3) factorial
task(4) shows the day of the week by date given.
programming C++.
using functions
An overview of the inner-workings of OpenJDK - with emphasis on...
- what triggers the just-in-time compiler (JIT)
- types of speculative optimizations performed by the JIT
- aspects of the Java language & ecosystem that make ahead-of-time (AOT) compilation challenging
PROGRAMMING IN C EXAMPLE PROGRAMS FOR NEW LEARNERS - SARASWATHI RAMALINGAMSaraswathiRamalingam
Fundamental Algorithms, Exchanging the values of Two Variables,Counting,Summation of a Set of Numbers,Factorial Computation ,Sine Function Computation ,Generation of the Fibonacci Sequence,Reversing the Digits of an Integer,Base Conversion , Character to Number Conversion , Factoring Methods: Finding the square Root of a Number ,The Smallest Divisor of an Integer,The Greatest Common Divisor of the two integers,Generating Prime Numbers,Computing the Prime Factors of an integer ,Generation of Pseudo,random Numbers,Raising a Number to a Large Power,Computing the nth Fibonacci Number,thiruvalluvar university syllabus,unit 5,computer science basics,new syllabus,programming in c,example program in c,
Ex.1 Write a program to print the following pattern
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Ex.2 Write a program to find bigger of three integers.
Ex.3 Write a program to calculate GCD between two numbers.
Ex.4 Write a program to find transpose of matrix.
Ex.5 Write a program which deletes an element from an array & display all other elements.
Ex.6 Write a program to calculate XA+YB where A & B are matrix & X=2, Y=3.
Ex.7 Write a program to calculate the total amount of money in the piggy bank, given that coins of Rs.10, Rs.5, Rs.2, RS.1.
& many more.....
program to convert decimal number into roman number
program of prime number
program to print total number of times a given number exist from 1 to 100
program to compare two given matrices
Final project report on grocery store management system..pdfKamal Acharya
In today’s fast-changing business environment, it’s extremely important to be able to respond to client needs in the most effective and timely manner. If your customers wish to see your business online and have instant access to your products or services.
Online Grocery Store is an e-commerce website, which retails various grocery products. This project allows viewing various products available enables registered users to purchase desired products instantly using Paytm, UPI payment processor (Instant Pay) and also can place order by using Cash on Delivery (Pay Later) option. This project provides an easy access to Administrators and Managers to view orders placed using Pay Later and Instant Pay options.
In order to develop an e-commerce website, a number of Technologies must be studied and understood. These include multi-tiered architecture, server and client-side scripting techniques, implementation technologies, programming language (such as PHP, HTML, CSS, JavaScript) and MySQL relational databases. This is a project with the objective to develop a basic website where a consumer is provided with a shopping cart website and also to know about the technologies used to develop such a website.
This document will discuss each of the underlying technologies to create and implement an e- commerce website.
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
CFD analysis is incredibly effective at solving mysteries and improving the performance of complex systems!
Here's a great example: At a large natural gas-fired power plant, where they use waste heat to generate steam and energy, they were puzzled that their boiler wasn't producing as much steam as expected.
R&R and Tetra Engineering Group Inc. were asked to solve the issue with reduced steam production.
An inspection had shown that a significant amount of hot flue gas was bypassing the boiler tubes, where the heat was supposed to be transferred.
R&R Consult conducted a CFD analysis, which revealed that 6.3% of the flue gas was bypassing the boiler tubes without transferring heat. The analysis also showed that the flue gas was instead being directed along the sides of the boiler and between the modules that were supposed to capture the heat. This was the cause of the reduced performance.
Based on our results, Tetra Engineering installed covering plates to reduce the bypass flow. This improved the boiler's performance and increased electricity production.
It is always satisfying when we can help solve complex challenges like this. Do your systems also need a check-up or optimization? Give us a call!
Work done in cooperation with James Malloy and David Moelling from Tetra Engineering.
More examples of our work https://www.r-r-consult.dk/en/cases-en/
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.
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.
Explore the innovative world of trenchless pipe repair with our comprehensive guide, "The Benefits and Techniques of Trenchless Pipe Repair." This document delves into the modern methods of repairing underground pipes without the need for extensive excavation, highlighting the numerous advantages and the latest techniques used in the industry.
Learn about the cost savings, reduced environmental impact, and minimal disruption associated with trenchless technology. Discover detailed explanations of popular techniques such as pipe bursting, cured-in-place pipe (CIPP) lining, and directional drilling. Understand how these methods can be applied to various types of infrastructure, from residential plumbing to large-scale municipal systems.
Ideal for homeowners, contractors, engineers, and anyone interested in modern plumbing solutions, this guide provides valuable insights into why trenchless pipe repair is becoming the preferred choice for pipe rehabilitation. Stay informed about the latest advancements and best practices in the field.
1. 1 | P a g e C A N A L H I G H E R I N S T I T U T E O F E N G I N E E R I N G & T E C H N O L O G Y
Task 3:
//numbers.cpp
C++ program: ordering numbers:
even, odd & prime
(desending-ascending) order
Prepared By:
Khalid Waleed
CANAL HIGH INSTITUTE OF ENGINEERING & TECHNOLOGY
2. 2 | P a g e C A N A L H I G H E R I N S T I T U T E O F E N G I N E E R I N G & T E C H N O L O G Y
1: // numbers.cpp
2: // program for ordering numbers: even,odd & prime
3: #include <iostream>
4: usingnamespace std;
5: void error(int&);
6: int main()
7: {
8: int process , numb , f=0;
9: char ask;
10: do{
11: cout <<" 1- ordering even numbers n 2- ordering odd numbers
12: n 3- ordering prime numbers";
13: cout <<"ninsert number of process : ";
14: cin >> process;
15: error(process);
16: switch(process)
17: {
18: case1:
19: cout <<"n 4- desending order n 5- ascending order ";
20: cout <<"ninsert number of process : ";
21: cin >> process;
22: error(process);
23: switch(process)
24: {
25: case4:
26: cout <<"Enter your number : ";
27: cin >> numb;
28: error(numb);
29: for(numb ; numb>0;--numb)
30: {
3. 3 | P a g e C A N A L H I G H E R I N S T I T U T E O F E N G I N E E R I N G & T E C H N O L O G Y
31: if(numb%2==0)
32: {
33: cout << numb <<", ";
34: }
35: }
36: break;
37: case5:
38: cout <<"Enter your number : ";
39: cin >> numb;
40: error(numb);
41: for(int c=1; numb>=c ; c++)
42: {
43: if(c%2==0)
44: {
45: cout << c <<", ";
46: }
47: }
48: break;
49: default:
50: cout <<"number of process unknown !";
51: }
52: break;
53: case2:
54: cout <<"n 6- desending order n 7- ascending order ";
55: cout <<"ninsert number of process : ";
56: cin >> process;
57: error(process);
58: switch(process)
59: {
60: case6:
61: cout <<"Enter your number : ";
4. 4 | P a g e C A N A L H I G H E R I N S T I T U T E O F E N G I N E E R I N G & T E C H N O L O G Y
62: cin >> numb;
63: error(numb);
64: for(numb ; numb>0;--numb)
65: {
66: if(numb%2!=0)
67: {
68: cout << numb <<", ";
69: }
70: }
71: break;
72: case7:
73: cout <<"Enter your number : ";
74: cin >> numb;
75: error(numb);
76: for(int c=1; numb>=c ; c++)
77: {
78: if(c%2!=0)
79: {
80: cout << c <<", ";
81: }
82: }
83: break;
84: default:
85: cout <<"number of process unknown !";
86: }
87: break;
88: case3:
89: cout <<"n 8- desending order n 9- ascending order ";
90: cout <<"ninsert number of process : ";
91: cin >> process;
92: error(process);
5. 5 | P a g e C A N A L H I G H E R I N S T I T U T E O F E N G I N E E R I N G & T E C H N O L O G Y
93: switch(process)
94: {
95: case8:
96: cout <<"Enter your number : ";
97: cin >> numb;
98: error(numb);
99: for(numb ; numb>=2;--numb)
100: {
101: f=0;
102: for(int j=2; j<=numb/2; j++)
103: {
104: if(numb%j ==0)
105: {
106: f=1;
107: break;
108: }
109: }
110: if(f==0)
111: cout << numb <<", ";
112: }
113: break;
114: case9:
115: cout <<"Enter your number : ";
116: cin >> numb;
117: error(numb);
118: for(int c=2; numb>=c ; c++)
119: {
120: f=0;
121: for(int j=2; j<=c/2; j++)
122: {
123: if(c % j ==0)
6. 6 | P a g e C A N A L H I G H E R I N S T I T U T E O F E N G I N E E R I N G & T E C H N O L O G Y
124: {
125: f=1;
126: break;
127: }
128: }
129: if(f==0)
130: cout << c <<", ";
131: }
132: break;
133: default:
134: cout <<"number of process unknown !"; 135:
136: }
137: break;
138: default:
139: cout <<"number of process unknown !";
140: }
141: cout <<"ndo another (y/n) ? ";
142: cin >> ask;
143: }while(ask == 'y');
144: return0;
145: }
146: void error(int&x)
147: {
148: while(cin.fail())
149: {
150: cin.clear();// clear input buffer to restore cin to a usable state
151: cin.ignore(INT_MAX, 'n');// ignore last input
152: cout <<"You can only enter numbers.n";
153: cout <<"Enter a number : ";
154: cin >> x;
155: }
7. 7 | P a g e C A N A L H I G H E R I N S T I T U T E O F E N G I N E E R I N G & T E C H N O L O G Y
156: }