write a python program to shuffle letters of words evenly first time and oddly second time except the first and last character when we run it again and again. it should have the capability to handle files too. own random function using time
input:
If you can’t find homework answers by yourself, turn to our experts to get professional response in any academic field. Even being good at all subjects, you may also be trapped for hours with one of those tricky questions.
Write a C++ program to find the owner name of the hall by hall number using the map.
In the main method, obtain input as CSV from the user in the console and find the Hall number to get the Owner of that hall using the map.
Problem constraints:
Create a Map as map <string, string >
Use find() to find the hall owner’s name.
Input and Output Format:
The First line of input consists of an Integer 'n' which corresponds to the number of Halls.
The next 'n' lines of Inputs are in CSV format.
For output refer to sample Input and Output for formatting specifications.
Sample Input and Output 1:
Enter the number of Halls
4
Enter details of Hall 1:
Hall-230, Binny
Enter details of Hall 2:
Hall-233, Ram
Enter details of Hall 3:
Hall-255, Annie
Enter details of Hall 4:
Hall-240, Vikram
Enter the Hall number to find its owner:
Hall-233
The owner of Hall-233 is Ram
Q1.]Create a class Student and inherit it in UGstudent clas , PGstudent class with various functions like name,rollno,branch,student,etc
what “special network set-up” is required for Banking software.
Given an array (myArray), write a JS program to find the index of the first boolean value in myArray using "findIndex()" method. Note: If the value is not present in the array, findIndex() returns "-1".Input :The first line of input will contain an array (myArray).Output:
The output should be a single line containing the index or -1.
input1:[ 'a', true, 'v', 5 ]
output1:1
Write the C++ program that will compute for the area under the curve of the equation,
Input:
- The lower limit a.
- The upper limit b.
- The number of trapezoids.
Compute for the area using trapezoids:
- Declare an array whose size will be equal to the number of trapezoids.
- Use a looping structure.
- Pass arguments to a module that will compute for the area of the trapezoid and return the area back to the calling method.
- Each element in the array will be assigned the returned area for every trapezoid.
- Use an accumulator to compound the sum of each element in the array.
Compute for the area using integral:
- Pass arguments to a module that will compute for the area under the curve and return the area back to the calling method.
- Assign the returned area to a variable.
Output:
- The area of each trapezoid.
- The area using the trapezoid method.
- The area using integral calculus.
- Percentage error (absolute).
A vegetable shop owner maintains the data in linked list. Write a menu-driven program that maintains
a singly linked list. Each vegetables node must contain the features: unique id, date of inclusion in
stock, vegetable name, shape, raw eating/cooking feature, weight, price per kilogram. Execute all the
following operations and attach screenshots of outputs along with other data/code as written (code
screenshot will not be allowed) in instructions in the submission pdf file.
1. Inclusion of 2 different type of vegetables.
2. Display data of all vegetables in stock nodes.
3. Delete a node based on some ’key’ searching criteria such as stock inclusion date is 10 days ago
or if a customer buys a vegetable and weight of that vegetable in stock has reached to zero.
4. Inclusion of two new vegetables (same or different).
5. Display data of all vegetables in stock.
Henry is working at a ticket counter. He has to store the ticket numbers continuously so he asks for help to free the stored ticket numbers so that he can store the ticket number again.
Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement.
Write a program to read the ticket numbers from the user and display the number after free the memory also.
In the main method, obtain input from the user in the console and display the ticket details.
Note:
Use free to deallocates a block of memory.
Input format:
Input consists of the number of tickets and the ticket numbers.
Output format:
Enter the number of tickets
3
Enter the ticket numbers
21
23
25
Ticket numbers are
21 23 25
After free, the ticket numbers are
0 0 25