In a parallel universe there are 8 days in a week. The 8th day is called Merday and it comes between Sunday and Monday. In this other universe, every month has 32 days and starts on a Monday. Write a program that asks the user to enter the number of the day of the month and repeatedly asks the user to re-enter the number if it is less than 1 or greater than 32. Then calculate what day of the week it is based on the user's number and print out the name of that day. Java
Q: Q2:Write a row-level trigger that executes before updating a project's location in the project…
A: I have mentioned answer in below steps, please find in below The task is to create a SQL query for…
Q: IN JAVA SCRIPT Create a function that takes an integer and reverses it. Examples rev (5121) ➡ "1215"…
A: In this problem, we need to design the JAVA Script program. Input - one argument Output - reverse…
Q: Main memory is byte addressable? 2^20 bytes Main memory is word addressable( a word size is 32…
A: The answer is
Q: Q\ Write program in fortran to find the maximum number of (x,y,z)?
A: Write program in fortran to find the maximum number of (x,y,z)?
Q: R9. Dial-up modems, HFC, DSL and FTTH are al used for residential access. For each of these access…
A:
Q: The following needs to be in python For this application, you will need to create a Python…
A: Code: #!/usr/local/bin/python3 def main(): # initalizing filename and valid months filename =…
Q: Assume we wish to resize an existing hash table because the current hash table is becoming too small…
A: Below are the steps required to copy the data from the old hash table to the new hash table and…
Q: Using Big-0 notation, live the complexity of the following fragments assuming the problem size is…
A: The solution is given below with explanation
Q: How does the NAT router differentiate two simultaneous connections which are initiated from PC1 to…
A: The Answer is in step-2.
Q: Your Name - Week 1 PA Classes Initial information for each employee Name: John Jones Monthly Salary:…
A: As per the requirement program is developed in java. Algorithm: Step 1: Write the Employee class…
Q: IN JAVA PROgramming Write a function that swaps the first pair (1st and 2nd characters) with the…
A: We need to write a Java code for the given scenario.
Q: Skype offers a service that allows you to make a phone call from a PC to an ordinary phone. This…
A: Skype: Skype is a video conferencing and voice calling application programming thing that empowers…
Q: Explain by writing one paragraph of Current IT infrastructure and systems in place for Computing…
A: IT InfrastructureI like to think of infrastructure as everything from the wall outlet to the outlet.…
Q: In Java, objects are explicitly deallocated from the stack. True False
A: Given question, In java , objects are explicitly deallocated from the stack. Correct answer is…
Q: Remove all errors from the C++ program given below asap. #include using namespace std; int main(){…
A: #include <bits/stdc++.h>using namespace std;int main(){ int sum_0 = 0, sum_n = 20, i=0;…
Q: Given the following list: 27, 407, 88, 230, 50, 7, 79, 90, 22, 5, 500 Write a recursive method in…
A: The question is to write recursive method in JAVA, to display the elements in the Binary Search Tree…
Q: Skype offers a service that allows you to make a phone call from a PC to an ordinary phone. This…
A: Here we have given solution as per your requirement. You can find the solution in step 2.
Q: Apply your knowledge about arrays and functions and write a program, which takes a positive integer…
A: Algorithm: Read the value of n Run loop for i to n+1 and print the upper row element Run for loop…
Q: Write a method that calculates and prints both the maximum humidity and maximum temperature values…
A: ANSWER:-
Q: (1) Write a python code to evaluate the following computations (i) exactly, (ii) using 3-decimals…
A: Import the required library. Compute the exact number. Compute the number chopped by 3-decimal…
Q: When the MPU starts up for the first time it goes to the Reset vector Interrupt vector General…
A: The correct answer is given below with explanation
Q: Recall the problem of finding the median of an array of an unsorted list. How fast can one complete…
A: Unsorted list: A list in which data items are placed in no particular order. the only relationships…
Q: Write a class called Animal with an default sound() method that does not output a specific animal…
A: Code is given below import java.util.Scanner; class Animal { void sound() {…
Q: What advantage does a circuit-switched network have over a packet-switched network? What advantages…
A:
Q: A processor's primary structural components should be mentioned and briefly characterised.
A: The Processor has mainly three structural components They are 1. Arithmetic and Logic Unit 2.…
Q: In this challenge you should repeat a specific given char x times. Create a function that takes a…
A: In this problem we need to design the JAVA Script program. Input - two argument Output - string…
Q: Explain why program inspections are an effective technique for discovering errors in a program. What…
A:
Q: Consider the grammar E → TE' E' → +TE' E T→FT' T'→ *FT' E F→ (E) | digit For the given expression (9…
A: The Answer is in step-2.
Q: Recall that TCP can be enhanced with SSL to provide process-to-process security services. including…
A: The Secure Socket Layer is a security technology.
Q: SOQL / Salesforce Shyam is new to salesforce and he want to understand where he can find all the…
A: In this problem, we need to describe the difference between the Text and Rich Text Field. Please…
Q: Show the content of a, and b, at the end of each iteration of Euclid's algorithm (version with…
A:
Q: IN JAVA SCRIPT Given an input string, reverse the string word by word, the first word will be the…
A: In this problem, we need to design the JAVA Script program. Input - two argument Output - string…
Q: Given the shortest side of a 30° by 60° by 90° triangle, find out the other two sides. Return the…
A: In this problem, we need to design the JAVA program. Input - one argument Output - side lengths
Q: We said that a network layer's service model "defines the characteristics of end-to-end transport of…
A: According to the information given:- We have to define the the characteristics of end-to-end…
Q: The word protocol is often used to describe diplomatic relations. How does Wikipedia describe…
A:
Q: Suppose a graph has 6 vertices of degree two, 12 vertices of degree three, and k vertices of degree…
A: Here in this question we have given that we have 6 vertices of degree 2 12 vertices of degree 3 k…
Q: QUESTION 8 In Java, objects are explicitly deallocated from the stack. True False
A: In Java. deallocation is done by garbage collector. Garbage Collector is based on object…
Q: Q1) Find y if x 1.5. y = (log10 (x))²x
A: x = 1.5; y = (log10(x))^2*x Explanation: The code finds the value of y if x is equal to 1.5. First,…
Q: discuss how to creat a non-executable stack and disuss the stack's exploitable weaknesses
A: how to creat a non-executable stack & the stack's exploitable weaknesses.
Q: Assume class MyStack implements the following StackGen interface. For this question, make no…
A: According to the question, we have to write a program code for class MyStack implements the given…
Q: IN JAVA SCRIPT Create a function that takes an integer n and reverses it. Examples rev (5121) ➡…
A: We need to write a Javascript function to reverse a number.
Q: A(n) _____ allows you to check whether a given string is in a language. indirect recursion algorithm…
A: COMPLETE SOLUTION OF BOTH PROBLEMS :
Q: True or false, Weak Leibniz can be used in a proof for p^q+(((\y)þyz) = (p = q)) = (((\y)oyz) = (p ✓…
A: According to the information given:- We have to check the weather the statement is true or not.
Q: The objective is to make sure we are able to set up their own GIT repository and are able to…
A: 1. Create a directory in any drive. For this example, a new directory named java_repo is created. 2.…
Q: What is the machine precision for the floating-point system F[2,12]? O a. 0 O b. 1/12 C. 1/6 d. 1/4…
A: Floating point numbers are the numbers with the decimal points and are represented with the floating…
Q: Suppose three algorithms A, B, and C, can be implemented to perform a task. The algorithms have the…
A: Algorithms are judged upon their run time. Algorithms can be constant runtime, linear, logarithmic,…
Q: Convert 2:00am to 24-hour clock time
A: Here is the explanation regarding the clock conversion:
Q: Describe the below expression of the following regular expression R.E. = (ba*c (a*aa)* b*a*c*)*c
A: Objective: Here, our goal is to define the provided regular expression. A regular expression is…
Q: Skype offers a service that allows you to make a phone call from a PC to an ordinary phone. This…
A: The interface between the Internet and phone network: Media transmission suppliers use DSL…
Q: How does a data breach effect cloud security? What are some possible countermeasures?
A: A data breach occurs when confidential, sensitive, or protected information is exposed to an…
need help
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images
- write a program in python Write a program that will allow a student to enter their name and then ask them to solve 10 mathematical equations. The program should display two random numbers that are to be added, such as: 247 + 129 The program should allow the student to enter the answer. The program should then display whether their answer was right or wrong, and accumulate the right values. After the 10 questions are asked, calculate the average that was correct. Then display the student name, the number correct, and the average correct in both decimal and percentage format. In addition to any system functions you may use, you might consider the following functions: A function that allows the student to enter their name. A function that gets two random numbers, anywhere from 1 to 500. A function that displays the equation and asks the user to enter their answer. A function that checks to see if the answer is correct and accumulates the number correct. A function that calculates the…Write a program that allows a user to enter any number of student quiz scores, as integers, until the user enters 99. If the score entered is less than 0 or more than 10, display Score must be between 10 and 0 and do not use the score. After all the scores have been entered, display the number of valid scores entered, the highest score, the lowest score, and the arithmetic averageIn Python Write a program that computes the fuel efficiency for a multi-leg journey. The program will first prompt for the starting odometer reading and then get information about a series of legs. For each leg, the user enters the current odometer reading and the amount of gas used (separated by a space). The user signals the end of the trip with a blank line. The program should print the miles per gallon achieved on each leg and the total MPG for the trip
- This example creates a program to teach a first grade child how to learn subtractions. The program randomly generates two single- digit integers number1 and number2 with number1 > number2 and displays a question such as "What is 9 – 2?" to the student. After the student types the answer, the program displays a message to indicate whether the answer is correct.Write a program that reads a four-digit number from user, then the program separates digits of the number e.g., 4567 to be displayed as:4567In Java code Write a program that takes in an integer in the range 11-100 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical.
- Write a program that generates a random number in the range from 1 through 100 After generating the random number, the user is to guess the number. If the user’s guess is higher than the random number, the program should display “Too high, try again” If user’s guess is lower than the random number, the program should display “Too low, try again”. If the user guesses the number, the program should congratulate the user and then generate a NEW random number so the game can start over. Make the game menu driven with these options Main Menu ______________ 1)Play Game 2)Exit written in pythonWrite a program that generates a plate number based on the user's answer to the following questions: 1. What is your favorite color of the rainbow (ROYGVIB)? a. Use the first letter of the chosen color as the first character of the plate number. b. Display "Invalid Input" and ask the user to re-enter his/her answer if the answer is not a valid color of the rainbow. 2. What is your month of birth? a. Use the last letter of the month as the second character of the plate number. b. Display "Invalid Input" and ask the user to re-enter his/her answer if the answer is not a valid month. 3. What is your first name? a. Use the third letter of the first name as the third character of the plate number. No need to include the second name if you have a second name. Make sure to use "cout" and "cin" to collect the necessary inputs from the user. For the number section: 1. Ask the user his/her age and use the age as the first and second digits of the plate number. a. Display "Invalid Input" and ask…A county collects property taxes on the assessed value of property, which is 60 percentof its actual value. For example, if a house is valued at $158,000.00 its assessed valueis $94,800. This is the amount the homeowner pays tax on. If the tax rate is $2.64 foreach $100.00 of assessed value, the annual property tax for this house would be$2502.72.Write a program that asks the user for the actual value of a piece of property and thecurrent tax rate for each $100.00 of assessed value. The program should then calculateand display how much annual property tax the homeowner will be charged for his or herproperty. The program should also display the Property Value, the Assessed Value, andthe Tax Rate. Display all monetary values to two decimal places Property Value: Tax Rate$100,000.00 2.64$200,000.00 2.05$350,000.00 3.10
- A number in base 2 (binary) is a number such that each of its digits is 0 or 1. To convert from binary to decimal (base 10), the digits starting from the right are multiplied by powers of 2 (starting at 0) and added. For example, the value in decimal of 10011 is calculated as follows: 1 ×2º+ 1 ×21+ 0 ×2²+ 0 ×2³+ 1 ×24=19 Write a program that reads from the user a 5-digit integer representing a value in binary and displays its equivalent value in decimal. Note that if the user enters an integer which digits are other than 0 or 1, the program displays a message stating that the number is not valid. Sample Run 1: Enter a 5-digit integer made of Os and ls: 10011 10011 in decimal is 19 Sample Run 2: Enter a 5-digit integer made of Os and 1s: 13001 13001 is not validWrite a program will then ask for the prelim grade, midterm grade and final grade of the student. The program should only accept grades 100 and below. After getting the three grades, the program should compute for the semestral grade. The computation of the semestral grade is as follows: 30%*PrelimGrade + 30%*midtermgrade + 40%finalgrade After inputting all the grades, the screen should clear again and will proceed to another screen. Use C ++ program, cin, cout, and iostream.Write a program that asks the user to enter 10 numbers, that range from 10-100. Make sure that you do not accept any numbers less than 10, if a user enters a number that is less than 10 then ask him again. Once the user enters all 10 numbers, sort the numbers entered in ascending order and print them out. CSharp