(Note: I need easiest solution of this program urgently)
Given a file containing various text, develop a program that will do the following using flex:
1. Read input from file and write output to file.
2. Count the number of vowel and consonant in the file and print the count.
3. Count a number of floating point numbers and integer numbers and print the count.
4. Count total number of white spaces.
5. Count total number of lines in the file.
Given the number of the month, write a program to print the name of the month
Write a function of print_customer and print list of customers whose age is between 18 and 30, or whose gender is female. Attributes of customer are name, age and gender
An avalanche effect is also desirable for the key: A one-bit change in a key should result in a dramatically different ciphertext if the plaintext is unchanged. 1. Assume an encryption with a given key. Now assume the key bit at position 1 (prior to PC − 1) is being flipped. Which S-boxes in which rounds are affected by the bit flip during DES encryption? 2. Which S-boxes in which DES rounds are affected by this bit flip during DES decryption?
Write a function that accepts three arguments a number n, and two characters s and t. The function convert n from s unit to t unit of similar physical quantities. You can choose one of the following types to use in your program:
1. Length
2. Temperature
3. Area
4. Volume
5. Weight
6. Time
i want to time change in this question
what major technical and nontechnical factors hinder software reuse do you personally reuse much software and , if not , why not?r
1. Program the following. Implement the following equation 3x4 sin(180x) + 4x3 cos(90x) + x2 sin(tan(45)) + 7x + 9cos(90x2 ) where x may be user defined value. 2. Program the following. Prompt user to input distance in Kilometers and display it in meters. Input any number from user and generate its square e.g. square of 8 is 64 Input any number from user and generate its cube e.g. cube of 8 is 512 Input a 4 digit number in any integer type variable and sum all the four digits, e.g. int a =3487, result = 22 Generate the table for a number input by the user. For the following equation 3x4 + 4x3 + x2 + 7x + 9, substitute the user provided value of x and generate the result.
Sam runs a local musical equipment store in your neighbourhood. He has contracted you to create an interactive application that will assist him with customer purchases. Create a class named Customer Purchases that will contain get and set methods for a customer number, first name, surname, product, price and quantity. Create a separate class called Printing that will include a method called Print Details, that will print the Customer Invoice. In the Printing class include another method called Customer Purchase Report which will display the following information: REPORT OPTION PERCENTAGE TAX 15% COMMISSION 8.5% DISCOUNT 10% TOTAL (Price + Tax) – (Discount + Commission
Exercise 1:
1. //The max function the max between a and b, it returns a if a == //b
public double max(double a, double b);
2. //The mult function returns the result of a * b public double mult(double a, double b);
3. //The exist in array function returns the index of the element //‘a’ if //‘a’ exist in array ‘arr’ otherwise returns ‘-1’ public int existsInArray(int [] arr, int a);
4. //Are array equals method compares two arrays and returns true // if the elements of array ‘a’ are equal to elements of array
// ‘b’, element by element. If equals it returns 0, it returns -
// 1 if not
public int areArrayEquals(int [] a, int [] b);
Devise four executable test cases for every method in the JUnit notation. See the attached handout for a refresher on the notation.