Write a program asks the user to enter a month

Assignment Help Basic Computer Science
Reference no: EM13208633

Write a program asks the user to enter a month (1 for January, 2 for February, and so on) and then prints the number of days in the month. For February, print "28 or 29 days". For example: Enter a mont: 5 30 days Do not use a separate if/else branch for each month. Use Boolean operators

Reference no: EM13208633

Questions Cloud

Derive taylor polynomials of degree : Derive taylor's polynomials of degree n for: f(x) = (1+x)^(1/2) and f(x) = cos x. Find the approximate value of above functions at x = pi/4 by hand calculator upto two decimal points. Show steps.
Create a program that asks users to enter the name : Create a program that asks users to enter the name of their favorite team. Have the program display this team's name. Then have program ask the user to enter the name of their five previous oponents,
Explain the chemistry involved in the current indstrial : Describe the chemistry involved in the current indstrial preparation of adipic acid, specifically listing the major by-product
Use a single if statement and boolean operators : Write a program that asks the user for a year and computes whether that year is a leap year. Use a single if statement and Boolean operators.
Write a program asks the user to enter a month : Write a program asks the user to enter a month (1 for January, 2 for February, and so on) and then prints the number of days in the month. For February, print "28 or 29 days". For example: Enter a mont: 5 30 days Do not use a separate if/else bran..
How different backgrounds work with the fonts : Your presentation should include information about font size and icons, how they look with different backgrounds, and how different backgrounds work with the fonts.
What is the minimum required frame length for this ethernet : Assume that two nodes in a 10Mbps Ethernet cable are 1200 meters apart. Also assume that the signal propagation speed is 2 x 10 8 meters/second. What is the minimum required frame length for this Ethernet?
Use the internet to visit its web page and find a listing : For what kind of information security jobs does the NSA recruit? Use the internet to visit its Web page and find a listing.
Prove true a similar statement for octal representation : suppose a 4n-bit number B is represented by an n-digit hexadecimal number H. Prove that the two's complement of B is represented by the 16's complement of H. Make and prove true a similar statement for octal representation.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  In what ways does it planning help managers exercise

In what ways does IT planning help managers exercise control in a situation? Does IT impact the truck driver of a company who delivers supplies to its customer?

  Use map to define convert-euro converts list of us dollars

Use map to define the following functions: convert-euro, which converts a list of U.S. dollar amounts into a list of euro amounts based on an exchange rate of 1.22 euro for each dollar.

  Find out winner in card game

When there is tie, nobody loses. If first two cards total 8 or 9, hand is called a "natural" and it wins automatically, unless both hands have equal value "naturals", in which case it's a tie.

  When deleting elements from a hash table with linear probing

When deleting elements from a hash table with linear probing, a special marker needs to be inserted in place of each deleted elements. Give an algorithm to perform deletion without the use of a special marker.

  Explain the four stages of the bpm process and summarize

Explain the four stages of the BPM process and summarize the activities in each.

  Company officers to find which planning approach is suitable

If you were in charge of systems planning for a small firm, what questions would you ask the company officers to determine which planning approach would be the most appropriate.

  16-bit 2''s complement numbers

Convert the following numbers to 16-bit 2's complement numbers (display results in hexadecimal)

  Determine number of toes of chicken using calculations

If radix r utilized by chicken corresponds to its total number of toes, determine how many toes does chicken have on each foot?

  What is the percentage of time processor is blocked

Consider a device of 50MBPS is operated in cycle stealing mode of DMA as and when 8byte word is available. It is transferred into the memory in 40ns. What is the percentage of time processor is blocked due to DMA.

  Peoplesharz is aiming to become financially self-sufficient

PeopleSharz is aiming to become financially self-sufficient by the end of 2014 at the latest. It is at this time that their venture capital funds will be exhausted but they estimate, once they hit the 50M user mark, and have deployed into production ..

  Flowchart a program by using ms viso

Flowchart a program by MS Viso, using conventions presented in the text, that will prompt user to input a name and the number of credit hours taken towards their degree.

  Installation options for customer tracking system

Which installation options are available for the Customer Tracking System? Which would you recommend? How can you determine if implementation has been successful?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd