Given the weekday of the first day of the month, determine the day of the week of the given date in that month
Day name-2
Day name-2
character strings are stored in the three linked lists inn fig.....(a) find the three strings. (b) form circular header lists from the one-way lists using CHAR[20],CHAR[19] and CHAR[18] as header nodes
Write a program that has a class Train with data members-no_of seats_sleeper, no_ of_seats_2Tier, no_of_seats_3Tier and member functions to set and display data. Derive a class Reservation that has data members-seats_Booked_sleeper, , no_ of_seats_Booked_2Tier, no_of_seats_Booked_3Tier, and a functions to book and cancel tickets, and display status
I want you to make a array/list of numbers for me. All you have to do is make a program that will let me input any random integer in one line. Afterwards, it will then print out all the numbers I've inputted, on separate lines.
Care to do that for me?
Input
A line containing integers separated by a space.
1·64·32·2·11Output
Multiple lines containing an integer.
1
64
32
2
11We've already made arraying/listing the easy way, but how about arraying/listing and printing the list in reverse order?
Make a program that will input an integer and then using loops, add items on an array/list one by one for the same number of times as that of the first inputted integer. Then, print out the array/list in reverse order, that is, starting from the last item on the array/list down to the first one, each in separated lines.
Input
The first line contains the size of the array/list.
The next lines contains the items of the array/list (integers).
5
1
64
32
2
11Output
Multiple lines containing integers.
11
2
32
64
1We've already tried printing out the values of an array in reversed order, right? Today, we shall compute for the squares of all the numbers.
There's already a predefined array/list containing 100 integer values. Loop through each values, compute their squares, and display them.
Output
Multiple lines containing an integer.
4
9
25
10000
49
9
25
9
1
16
.
.
.We've already made arraying/listing the easy way, but how about arraying/listing and printing the list in reverse order?
Make a program that will input an integer and then using loops, add items on an array/list one by one for the same number of times as that of the first inputted integer. Then, print out the array/list in reverse order, that is, starting from the last item on the array/list down to the first one, each in separated lines.
Input
The first line contains the size of the array/list.
The next lines contains the items of the array/list (integers).
5
1
64
32
2
11Output
Multiple lines containing integers.
11
2
32
64
1I want you to make a array/list of numbers for me. All you have to do is make a program that will let me input any random integer in one line. Afterwards, it will then print out all the numbers I've inputted, on separate lines.
Care to do that for me?
Input
A line containing integers separated by a space.
1·64·32·2·11Output
Multiple lines containing an integer.
1
64
32
2
11