Unite Family (*inputs must be from keyboard.its user choice.)
Given three objects
Sample Input
{'surname' : 'Jones', 'city': 'Los Angeles'}
{'dish': 'puddings'}
{'pet': 'Peter'}
Sample Output
Mr and Mrs Jones went to a picnic in Los Angeles with a boy and a pet Peter. Mrs Jones made a special dish "puddings"
Write a program that will sort a list of strings (names of person) enter by the user given the value of n names.
Write a c++ program find the which data is greater than given data ( assume the 2 data in one Singal year only, consider leap year also as an input)
A. Define a class called day with member as date , month, year
B. Define a parametized constructor to initized the data
C. Overload>opertor using member function to check if data 1>data2.
D. Write a show _data function to show the data in dd:yyyy found
A local zoo wants to keep track of how many pounds of food each animal eats each day during a typical week. Write a program that stores this information in a two-dimensional 3 × 4 array, where each row represents a different animal and each column represents a different day of the week. The program should first have the user input the species and then the data for each animal. Then it should create a report that includes the following information:
Input Validation: Do not accept negative numbers for pounds of food eaten.
Create a function:
• Get food eaten
• The least amount of food eaten during the week by any one monkey.
• The greatest amount of food eaten during the week by any one monkey
Input Validation:
Expected Output
Check each Mimir test case for expect output
Program to print the Fibonacci numbers using recursion.
A set of numbers is stored in a file named numbers.txt. Write a program to copy all odd numbers to another file called odd.txt and all even numbers to a file called even.txt.
Write a program that asks the user to enter a filename followed by a command. If the user enters the command “print”, your program should print the contents of the file to the console exactly as it appears in the file. If the user enters the command “double”, your program should read each number contained in the file and print the number doubled to a separate line on the console.
Given a square matrix, calculate the absolute difference between the sums of its diagonals. For example, the square matrix m is shown below:
1 2 3
4 5 6
7 8 9
The left-to-right diagonal = 1 + 5 + 9 = 15. The right to left diagonal = 3 + 5 + 7 =15. Their absolute difference is |15 – 15| = 0
Sample Input
3
11 2 4
4 5 6
10 8 12
Sample output
17
Note: The number 3 on the first line of input represent the dimension of the square matrix. In this case, it’s a 3 x 3 two-dimensional array.
Create an application containing an array that stores 10 integers. The application should call five methods that in turn:
a) Display all integers in the array
b) Display all integers in reverse order
c) Display the sum of the integers
d) Display all values that ae high than the calculated average value
(a) Write an application for Cody’s Car Care Shop that shows a user a list of available services: oil change, tire rotation, battery check, or brake inspection. Allow the user to enter a string that corresponds to one of the options, and display the option and its price as $25, $22, $15, or $5, accordingly. Display an error message if the user enters an invalid item.
(b) It might not be reasonble to expect users to type long entries such as ‘oil change’ accurately. Modify the program in (a) so that as long as the user enters the first three characters of a service, the choice is considered valid.