Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program in python to print respective month of a year.

1. Broken Record

Instructions:

  1. Input a positive integer.
  2. Using while() loop, repeatedly print out the message "CodeChum is awesome" for the same number of times as that of the inputted integer. Each outputted message must be separated in new lines.
  3. Don't forget to make an increment/decrement variable that will increase its value per iteration so as to not encounter a forever loop and have errors, okay?

Instructions

  1. Make a variable and assign it to an input() function that will accept a positive integer.
  2. Using while() loop, repeatedly print out "CodeChum is awesome" for the same number of times as that of the inputted integer. Each outputted string must be separated in new lines.
  3. Don't forget to make an increment variable that will increase its value per iteration so as to not encounter a forever loop and have errors, okay?

Input

A line containing an integer.

4

Output

Multiple lines containing a string.

CodeChum·is·awesome
CodeChum·is·awesome
CodeChum·is·awesome
CodeChum·is·awesome





Assume 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.)


4. Loading…

by CodeChum Admin



Instructions:

  1. Input two integers in one line. The first inputted integer will be the starting point, and the second one shall serve as the ending point.
  2. Create two variables and assign them to an input() function. The first variable will accept the starting integer and the second one will accept the ending integer of the range.
  3. Use the power of loops to loop through the starting point until the ending point (inclusive), and print out each number within the range with the corresponding format shown on the sample output.
  4. However, skip the printing of statement if the integer is divisible by 4.
  5. Tip: Utilize the continue keyword to complete the process.



Input

A line containing two integers separated by a space.

2 10

Output

Multiple lines containing a string and an integer.

Loading...2%
Loading...3%
Loading...5%
Loading...6%
Loading...7%
Loading...9%
Loading...10%

3. Not my Favorites

by CodeChum Admin



Instructions:

  1. Print out the cube values of the numbers ranging from 1 to 1000 (inclusive). However, if the number is divisible by either 3 or 5, do not include them in printing and proceed with the next numbers.
  2. Tip: When skipping through special values, make use of the keyword continue and put them inside a conditional statement.



Output

Multiple lines containing an integer.

1
8
64
343
512
.
.
.

2. Found Ya!

by CodeChum Admin



Instructions:

  1. Input two integers in one single line. The first inputted integer must be within 0-9 only.
  2. Using loops, identify if the first inputted integer (0-9) is present in the second inputted integer. If it is found, print "Yes". Otherwise, print "No".
  3. Tip : If the number is already found even without reaching the end of the loop, use the break keyword to exit the loop early for a more efficient code.

Input

A line containing two integers separated by a space.

1 231214238

Output

A line containing a string.

Yes




1. Finding Letters

by CodeChum Admin


Instructions:

  1. Create two variables and assign them to an input() function. The first variable shall accept a single letter and the second variable shall store the inputted string.
  2. Using loops, count the number of times that the single letter appears on the inputted string, and when it appears at least twice in the string, print "Cody is really awesome"; else, print "Cody rocks".
  3. Tip: to make your code more efficient, use the break keyword to terminate the loop whenever the count of appearance of the single letter has already reached 2.



Input

The first line contains a single-letter string.

The second line contains a string.

e
CodeChum is awesome

Output

A line containing a string.

Cody is really awesome





LATEST TUTORIALS
APPROVED BY CLIENTS