Write pseudocode for a program that prompts the user for a month and day and prints out
Question:
Write pseudocode for a program that prompts the user for a month and day and prints out whether it is one of the following four holidays:
• New Year’s Day (January 1)
• Independence Day (July 4)
• Veterans Day (November 11)
• Christmas Day (December 25)
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 85% (7 reviews)
Input the month Input the day If the month is equal to January a...View the full answer
Answered By
Joash Mokaya
I am an experienced tutor with more than 7 years of experience. I have helped thousands of students pursue their academic goals. My primary objective as a tutor is to ensure that students have an easy time handling their academic tasks.
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Write a program that prompts the user to enter three strings. Compare the String objects lexicographically and print the middle-valued string. For example, if the three strings were "abcd", "wxyz",...
-
Write a program that prompts the user to input a string and then outputs the string in the pig Latin form. The rules for converting a string into pig Latin form are as follows: a. If the string...
-
Create the logic for a program that prompts the user for numeric values for a month, day, and year. Then pass the three variables to the following methods: a. A method that displays the date with...
-
Samson Tile produces its product in two processing departments: Forming and Finishing. The following T-account shows the Forming Department's Work in Process Inventory at August 31 prior to...
-
In an article in the Journal of Management, Joseph Martocchio studied and estimated the costs of employee absences. Based on a sample of 176 blue-collar workers, Martocchio estimated that the mean...
-
Choose the larger atom from each pair, if possible. a. Sn or Si b. Br or Ga c. Sn or Bi d. Se or Sn
-
Suppose the cost of gasoline today is \($3.60\) per gallon. Using the 1980 price as the reference value, find the price index number for gasoline today.
-
Shady Lady sells window coverings to both commercial and residential customers. The following information relates to its budgeted operations for the current year. The controller, Kelly Swenson, is...
-
Programming: Make a While3Addr version of: inparam := 6; -- Set the input parameter (change the value as needed) a := 0; -- Initialize variable a to 0 b := 1; -- Initialize variable b to 1 while...
-
ACTS John Nguyen (John) owns and runs a successful cafe, University Caf, in Bundoora. He has been having serious back pain and decides to sell University Caf. John contacts Willy Wonka Commercial...
-
Write a program that prompts the user to provide a single character from the alphabet. Print Vowel or Consonant, depending on the user input. If the user input is not a letter (between a and z or A...
-
Write a program that 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. Enter a month: 5 30...
-
(a) The structure of YBa 2 Cu 3 O 7 can be described as consisting of rock salt and perovskite layers. Describe the origin of this description. (b) Why is the potential replacement of NbTi by...
-
Key Question #8 (20 marks) Before you read the story, it is important that you understand a bit about Maya's beliefs. 1. Using the Internet, research a bit on Hinduism. Write a short information...
-
Hypertext is: Very large text Structured text in which transitions can be made on selected marks Text typed on a computer Text that uses a large font
-
I am standing with a baseball in my hand. The mass of the baseball is 1 4 5 g ( 0 . 1 4 5 kg ) . The ball is held 1 . 2 m from the ground. What is the potential energy of the baseball in my hand...
-
A golf ball is hit with horizontal velocity of 1 4 m / s and vertical velocity of 1 0 m / s . a. How long ( how many seconds ) is the ball moving upward before coming back down? b. How long does...
-
A 14.6-kg box is sliding across a horizontal floor. It has an initial speed of 1.55 m/s and the only force acting on it is kinetic friction with magnitude f = 2.65 N. Determine the distance the box...
-
Brightstone Tire and Rubber Company has capacity to produce 170,000 tires. Brightstone presently produces and sells 130,000 tires for the North American market at a price of $175 per tire....
-
A sample statistic will not change from sample to sample. Determine whether the statement is true or false. If it is false, rewrite it as a true statement.
-
Assume that a private internet requires that the messages at the application layer be encrypted and decrypted for security purposes. If we need to add some information about the encryption/decryption...
-
If a port number is 16 bits (2 bytes), what is the minimum header size at the transport layer of the TCP/IP protocol suite?
-
Assume a private internet uses three different protocols at the data-link layer (L1, L2, and L3). Redraw Figure 2.10 with this assumption. Can we say that, in the data-link layer, we have...
-
Using the Gram-Schmidt method, find the orthonormal basis of the column space of the matrix A given below. 1 12 A = -1-4 0-2 -2 25
-
How do financial systems, capital markets, and monetary policies facilitate access to finance, investment mobilization, and risk management strategies, and what regulatory reforms are necessary to...
-
What are the socio-economic implications of demographic trends, including population aging, urbanization, and migration flows, on labor markets, social protection systems, and economic development...
Study smarter with the SolutionInn App