Answer A:-
pseudocode:-
int day[]= {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
Display “January is Month 1 has” day [0] “days”
Display “February is Month 2 has” day [1] “days”
Display “March is Month 3 has” day [2] “days”
Display “April is Month 4 has” day [3] “days”
Display “May is Month 5 has” day [4] “days”
Display “June is Month 6 has” day [5] “days”
Display “July is Month 7 has” day [6] “days”
Display “August is Month 8 has” day [7] “days”
Display “September is Month 9 has” day [8] “days”
Display “October is Month 10 has” day [9] “days”
Display “November is Month 11 has” day [10] “days”
Display “December is Month 12 has” day [11] “days”
-----------------------------------------------------------------------------------------------------
Answer B
pseudocode is:-
// using parallel array
String monthName[]= {“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December”}
int day[]= {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
For i=0 to 12 do
Display monthName[] “has” day[0] “days”
End of For loop
---------------------------------------------------------------------------------------------
If you have any query, please feel free to ask.
Thanks a lot.
Just pasty b Use parallel arrays and use simple puedocode 13. a. Design an application in...
JAVA CODE Beginner. please use if, else if or switch statements, but don't use arrays, please Write a program that reads a string from the keyboard and tests whether it contains a valid date. Display the date and a message that indicates whether it is valid. If it is not valid, also display a message explaining why it is not valid. The input date will have the format mm/dd/yyyy. A valid month value mm must be from 1 to 12...
PLEASE USE PSEUDOCODE Input a list of employee names and salaries stored in parallel arrays. The salaries should be floating point numbers in increments of 1000 (note: the book says 100, but it is wrong). For example, a salary of $36,000 should be input as 36.0 and a salary of $85,900 should be input as 85.9. Find the mean (average) salary without using any Python sum or average functions and display the names and salaries of employees who earn within...
PYTHON Build a regular expressions based on informal specifications to match specified patterns. Use a compiled regular expression in a Python program where appropriate. Use Python's text processing str methods to generate a string format converter. create a date format converter. Your program will convert a date in the format “mm/dd/yyyy” to the format “month day, year”. Specify the required input format: mm/dd/yyyy Use a regular expression to validate the user input date format. If the format is incorrect raise...
In Java.
Write a GUI contact list application. The program should allow you to input names and phone numbers. You should also be able to input a name and have it display the previously entered phone number. The GUI should look something like the following, although you are welcome to format it in any way that works. This should be a GUI application with a JFrame. The program should contain two arrays of Strings. One array will contain a list...
Write a C++ console application that allows your user to capture rainfall statistics. Your program should contain an array of 12 doubles for the rainfall values as well as a parallel array containing the names of the months. Using each of the month names, prompt your user for the total rainfall for that month. The program should validate user input by guarding against rainfall values that are less than zero. After all 12 entries have been made, the program should...
PART B: DATE BOOK A classic computer application is the electronic date book: a list of daily events stored in a calendar. Write a Java program that can be used as a simple date book. The date book will use a separate array for each month of the year, with one array entry for each day in the month (0 = first day of the month, 1 = second day of the month, etc.). The date book is "simple" because...
# JAVA In the following program, declare an integer array daysInMonth that stores the number of days in January, February, March, April, and so on. Fill it with the appropriate values (31, 28, 31, 30, ...).The program reads a month and year from the user.When the year is a leap year, change the entry for February to 29.Print out how many days the given month has.CODE:import java.util.Scanner;public class NumberOfDays{ public static void main(String[] args) { // Declare and initialize daysOfMonth ....
Write a Java console application that reads a string from the keyboard and tests whether it contains a valid date. Display the date and a message that indicates whether it is valid. If it is not valid, also display a message explaining why it is NOT valid. The input date will have the format mm/dd/yyyy. A valid month value mm must be from 1 to 12 (January is 1). You can use: String monthPart = inputDate.substring(0, 2); int month =...
Create 4 arrays: a 1-D array to store the students’ id, 1-D array to store the students’ names, a parallel 2-D array to store the test scores, and a parallel 1-D array to store letter grades. Read data into the 3 arrays from the file data121.txt. If the file is not found, the program needs to terminate with this error, “Data file not found.” Calculate and store a letter grade into a 1-D array based on the total score, sum...
use JavaScript in Atom Q1: create functions.js. You do not need to create a web page (.html) for this requirement. As you write each function, test it using the DevTools console. When it is correct, move on to the next function. A) Write a function named isVowel that accepts a character and returns true if the character a vowel, false otherwise. Use a RegExp to solve this problem, and arrow function syntax. Examples: > isVowel('Y') > true > isVowel('@') >...