Write c++ code using the following output
Enter values in first array
5
9
8
2
4
Minimum Element
2
Using ArrayList create a book borrowing system. Create ListBook.txt that list all the book information such as bookId, bookTitle, bookAuthor, bookGenre.
Imagine you are developing a software system that requires users to enter their own passwords.
Your software requires that user’s password meet the following criteria:
The password should be at least eight characters long.
The password should contain at least one uppercase and at least one lowercase letter.
The password should have at least one special character.
Write a program that asks for a password and then verifies that it meets the stated criteria. If it
doesn’t, the program should display a message telling the user why.
def cels_to_fahr(cels):
'''
convert Celsius-Fahrenheit
'''
return (cels*9/5) + 32
I have a Question about this symbol (''')(''') what it mean in this code and what their function??
write a program that:
Write a program to create 2 single dimension arrays in order to store 10 numbers respectively, then merge the values of both the arrays into third array so that the values of first array and second array will be alternate to each other, then display values of the merged array.
Alternate means third array will carry values of first and second arrays as follows:
c[0]=a[0]
c[1]=b[0]
c[2]=a[1]
c[3]=b[1]
c[4]=a[2]
c[5]=b[2]
c[6]=a[3]
c[7]=b[3]
..... where above digits are the index position not the values
Use java.util.* package and for loop.
As a safety precaution banks provide a feature that during any ATM transaction if someone comes and attacks, then the customer can enter the ATM pin in reverse order. This sends a message to the nearest police station. However if the reversed pin is the same as he original pin then no alarm is created. The bank needs a software application that checks that a user chooses an ATM pin whose reverse is not the same number. A software need to be developed with following requirements using while loop.
a. Read the pin number
b. Calculate the reverse the pin number
c. if the reversed pin is same as original pin then inform the user that this is an invalid pin number
1. What happens when a major stockholder and founding member violates company rules, procedures, and processes?
Write a program to take in the roll number, name and percentage of marks for n students of
Class X. Write user defined functions to:
1. accept details of the n students (n is the number of students)
2. search details of a particular student on the basis of roll number and display
result
3. display the result of all the students
4. find the topper amongst them
5. find the subject toppers amongst them
(Hint: use Dictionary, where the key can be roll number and the value is an immutable data
type containing name and percentage)
A digital filter is described by difference equation y(n) −2.56y(n −1)+2.22y(n−2)−0.65y(n−3) = x(n)+x(n−3) where x(n) is the input and y(n) is the output. Assume all zero initial conditions. a) Generate the input signal x(n), which is a sinusoid of frequency F1 sampled at Fsamp. Plot five cycles of sinusoidal signal. b) Find the output by implementing the difference equation. c) Reconstruct the signal using formula Xr = also analyze the Sin[π(t−kT)/T] N−1 k=0 x(kT)Sin[π(t − kT)/T] [π(t − kT)/T] [π(t−kT)/T] term interpolation process. d) Downsample the input sinusoidal sequence by a factor of 2. Plot the time-domain signal. e) Plot the spectrum of the downsampled signal in the interval (−π,π). What frequency in Hz does π represent? f) Upsample the input sinusoidal sequence by a factor of 3. Plot the time-domain signal. g) Plot the spectrum of upsampled signal in the interval (−π,π). What frequency in Hz does π represent now?