Write a program in python to print respective month of a year.
Instructions:
Instructions
Input
A line containing an integer.
4Output
Multiple lines containing a string.
CodeChum·is·awesome
CodeChum·is·awesome
CodeChum·is·awesome
CodeChum·is·awesomeAssume that a disk has 512 tracks, with each track having 128 sectors and each sector is of size 8 M bits. The cluster size in this system can be assumed to be as 8 sectors. A file having the name assignmentofsemester1.txt is of size 512 MB. Assume that disk has 128 free - continuous clusters. How can this file be allotted space on the disk? Also show the content of FAT after the space allocation to this file. You may make suitable assumptions.
A computer has 16 MB RAM with each memory word of 32 bits. It has cache memory having 512 blocks having a size of 128 bits (4 memory words). Show how the main memory address (CA30FB)h will be mapped to cache address, if
(i) Direct cache mapping is used
(ii) Associative cache mapping is used
(iii)Two way set associative cache mapping is used.
You should show the size of tag, index, main memory block address and offset in your answer.
Suppose two hosts A and B are directly connected. Length of the link is 10,000 km and the transmission rate is 10 Mbps. The propagation speed of the link in 0.5 * 108 m/s. Based on this information answer the following questions.
(i) Suppose A sends a file of 100 MB size. How long does it take to send the file? Assume the file is sent continuously.
(ii) Suppose the original file is broken up into 100 packets where size of each packet is 1MB. B sends an ACK for each packet and A cannot send a packet until the previous packet is acknowledged. Transmission time of an ACK packet is negligible. How long does it take to send the file?
Jason typically uses the Internet to buy various items. If the total cost of the items ordered, at
one time, is $200 or more, then the shipping and handling is free; otherwise, the shipping and
handling is $10 per item. Write a program that prompts Jason to enter the number of items
ordered and the price of each item. The program then outputs the total billing amount. You
have to use a loop (repetition structure) to get the price of each item. (For simplicity, you may
assume that Jason orders no more than nine (9) items at a time.)
by CodeChum Admin
Instructions:
Input
A line containing two integers separated by a space.
2 10Output
Multiple lines containing a string and an integer.
Loading...2%
Loading...3%
Loading...5%
Loading...6%
Loading...7%
Loading...9%
Loading...10%by CodeChum Admin
Instructions:
Output
Multiple lines containing an integer.
1
8
64
343
512
.
.
.by CodeChum Admin
Instructions:
Input
A line containing two integers separated by a space.
1 231214238Output
A line containing a string.
Yesby CodeChum Admin
Instructions:
Input
The first line contains a single-letter string.
The second line contains a string.
e
CodeChum is awesomeOutput
A line containing a string.
Cody is really awesome