Python,C,C++ and JAVA programs for CBSE, ISC, B.Tech and I.
T Computer Science and MCA students
More Create Blog Sign In
The Programming Project
JAVA, Python, C++ and C programs for students. Here you will also find solutions to boards papers of ISC Computer Science Practical and CBSE Computer Science. ISC
and ICSE JAVA PROGRAMS
Home ISC Computer Science Practical Solved ISC Computer Science Theory Programs ICSE JAVA Programs Project Euler Solutions
Telegram
Share
Search This Blog
Tuesday, September 21, 2021 Search
ISC COMPUTER SCIENCE PRACTICAL SOLVED 2021 QUESTION 1: FASCINATING Maths on Facebook
NUMBERS Maths on YouTube
Maths
QUESTION 1:
A Fascinating number is one which when multiplied by 2 and 3 and then, after the results are concatenated with the original number, the new About Me
number contains all the digits from 1 to 9 exactly once. There can be any number of zeros and are to be ignored.
Vinod Singh
Example: 273 Vinod Singh M.Sc Pure
Mathematics., Calcutta
273 x 1 = 273 University (First Class) B.Sc
Mathematics., St. Xavier's
273 x 2 = 546 College Kolkata (First Class) Contact No. :
+91-9038126497
273 x 3 = 819
View my complete profile
Concatenating the results we get, 273546819 which contains all digits from 1 to 9 exactly once.
Thus, 273 is a Fascinating number. JAVA, C++, C, Python and JavaScript for
students. Here you will also find solutions to
Accept two positive integers m and n, where m must be less than n and the values of both ‘m’ and ‘n’ must be greater than 99 and less than boards papers of ISC Computer Science
10000 as user input. Display all Fascinating numbers that are in the range between m and n (both inclusive) and output them along with the Practicals and CBSE Computer Science.
ISC JAVA PROGRAMS
frequency , in the format given below:
Prime Maths
Test your program with the following data and some random data: १,१६,१२१ फॉलोअर
Example 1
INPUT m = 100 पेज फॉलो करा शेअर करा
n = 500
OUTPUT: THE FASCINATING NUMBERS ARE:
192 219 273 327
FREQUECNY OF FASCINATING NUMBERES IS: 4
Example 2
INPUT m = 900
n = 5000
Prime Maths
मिहन्याभरापूवीर्
OUTPUT: THE FASCINATING NUMBERS ARE:
Monotonicity of trigonometric function #IIT
1902 1920 2019 2190 2703 2730 3027 3270
#WBJEE #CBSE
FREQUECNY OF FASCINATING NUMBERES IS: 8
Example 3
INPUT m = 400 Total Pageviews
n = 900 283,517
OUTPUT: THE FASCINATING NUMBERS ARE:
Followers
NIL
FREQUECNY OF FASCINATING NUMBERES IS: 0
import java.util.*;
public class ISC2021QUESTION1 {
public static void main(String[] args) {
int m,n; Blog Archive
Scanner in = new Scanner(System.in);
do { ► 2023 (23)
System.out.println("Enter the lower bound(m):"); ► 2022 (19)
m = in.nextInt();
▼ 2021 (22)
System.out.println("Enter the upper bound(n):");
► October (7)
n = in.nextInt();
}while (m < 99 || n > 10000 || m < n); // conditions check ▼ September (8)
Fascinating obj = new Fascinating(m,n); Python program to enter 10 numbers in
obj.generateFascinatingNumbers(); list and how...
in.close(); ISC COMPUTER SCIENCE
} PRACTICAL SPECIMEN PAPER
} 2021...
class Fascinating { ISC COMPUTER SCIENCE
public void generateFascinatingNumbers() { PRACTICAL SPECIMEN PAPER
System.out.println("THE FSCINATING NUMBERS ARE:"); 2021...
for (int i=m;i<=n;i++){ ISC COMPUTER SCIENCE
if(isFascinating(i)==true) { PRACTICAL SPECIMEN
QUESTION P...
System.out.println(" "+i+" ");
frequency++; COMPOUND INTEREST CACULATOR
} : PYTHON PROGRAMMING
} ISC COMPUTER SCIENCE
if(frequency==0) { PRACTICAL SOLVED 2021
System.out.println("NIL:"); QUESTIO...
System.out.println("FREQUNCY OF THE FASCINATING NUMBERS IS:"+frequency); ISC COMPUTER SCIENCE
} PRACTICAL SOLVED 2021
QUESTIO...
else
System.out.println("FREQUNCY OF THE FASCINATING NUMBERS IS:"+frequency); ISC COMPUTER SCIENCE
} PRACTICAL SOLVED 2021
QUESTIO...
private boolean isFascinating(int numb){
int digitFrequency=0; // local variable ► August (1)
String temp = "";
► January (6)
// concatenating the numbers as stated
temp = Integer.toString(numb)+Integer.toString(numb*2)+Integer.toString(numb*3); ► 2020 (9)
// checking that the frequecny of each digit is 1 or not
► 2019 (31)
for(int j=0; j < 9; j++){ // running through digit 1 to 9
digitFrequency = 0; ► 2014 (87)
flag = true; ► 2013 (63)
for(int i=0;i<temp.length();i++){
► 2012 (7)
if(check.charAt(j)==temp.charAt(i)){
digitFrequency++;
}
}
if(digitFrequency != 1)
flag = false;
if(flag==false)
break;
}
return (flag == false? false : true);
}
Fascinating(int m, int n) {
this.n = n;
this.m = m;
frequency = 0;
}
private static String check = "123456789";
private int n;
private int m;
private int frequency;
private boolean flag;
}
Posted by Vinod Singh at 6:12 AM
Labels: 2021, ISC, JAVA, Practicals, Program, solved
No comments:
Post a Comment
Enter Comment
Newer Post Home Older Post
Subscribe to: Post Comments (Atom)
Powered by Blogger.