Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002 as well all vehicles in its Guzzler line from model years 2004-2007. Given a variable modelYear and a String modelName write a statement that prints the message "RECALL" to standard output if the values of modelYear and modelName match the recall details. Looking for help in this through Java
Q: Dynamic desirable and Dynamic auto
A:
Q: In 00, the concept of IS-A is based on: O Class inheritance and Interface implementation Interface i...
A: Given: To choose the correct option.
Q: All nodes in a Mesh Network are connected in a flat or non-hierarchical manner. This is how many cor...
A: Networks of meshes Mesh networks link nodes in a direct, non-hierarchical fashion to as many other n...
Q: Exercise 5: Modify the program convert.py (from exercise 1) so that it computes and prints a table o...
A: print table of celsius temperature and fahrenheit equivalents every 10 degrees from a degree to 100 ...
Q: 13.10 Describe the DHCP lease idea. What is the procedure for obtaining it? What is the purpose of i...
A: Obtaining lease time for DSCP (Dynamic Host Configuration Protocol): Lease time assignment is depend...
Q: Assignment#1-Part-2 write a c# program which takes 2 inputs for alphabet(sigma) and your program wil...
A: The program ask user to enter two string input and matches with a default string returning a desired...
Q: Write the following code segment in MARIE assembly language. (Hint: Turn the for loop into a while l...
A: Sum=0; while X < 10 do Sum= Sum +X; endwhile;
Q: Would you used prototyping for every aspect of a system and why ? Explain why you would use prototy...
A: used prototyping for every aspect of a system use prototyping in either a waterfall or increment...
Q: What are CSV (comma-separated values) text files? What is an easy command for splitting each CSV rec...
A: The answer of this question is as follows:
Q: Suppose a 5-bit LFSR with the initial seed 11000 output the keystream 110001011000... Determine the ...
A: The LFSR is an abbreviation for Linear Feedback Shift Register. It is a register with an input bina...
Q: It is a name assigned to data storage location. Answer: What keyboard shortcut is used to run a C-la...
A: 1. what is the name assigned to a data storage location. Answer: Primary storage (also known as main...
Q: Write a piece of code that prints the elements of a queue of integers, one per line.
A: As no programming language is mentioned, it is solved using C++
Q: PYTHON You have been given the following proposition: pv (p A q) Write a code in python to prove tha...
A: The above python pogram is solved below
Q: The Mastermind game board game is a code breaking game with two players. One player (your program) b...
A: import randomsecretCode =[]for i in range (0,4): n = random.randint(1,9) secretCode.append(str...
Q: hods are used to proc
A: Methods are used to process data
Q: 2. Given a list of integers (1, 2, 3, 4, 5,). Write a Python program using a map to double every ele...
A: The above python program is answered below
Q: Represent the following decimal numbers in binary using 8-bit signed magnitude, one's complement, an...
A: Here in this question we have asked to convert +59 and -59 in sign magnitude,1s complement and 2s c...
Q: Using for loop, write a bash script that must go through all files stored in /etc directory. The loo...
A: Screenshot Of Code:
Q: Please explain the problem around the decision to allow or exclude "interruption of interruptions": ...
A: SUMMARY: - Hence, we discussed all the points.
Q: Your task is to check whether java is perfectly installed on your computer or not. for this, you hav...
A: The solution to the given problem is below.
Q: Will the following program work? #include int main() { int n=5; printf("n=%*d\n", n, n); return 0; ...
A: The answer is given below:-
Q: Line: 2 3 4 + + Result: 9 Line: 12 6 / 4 * 4 + Result: 12 Line: 2 2 3 3 * ** Result: 36 Line: 7 5 / ...
A: I give the code along with output and code screenshot in Java
Q: What keyboard shortcut is used to close the DevC? Select one: a. Alt+C b. Ctrl+C C. Alt+X d. Alt+F4 ...
A: Answer : d. Alt+F4 is shortcut used to close DevC.
Q: e of a regular telephone line. a telephone normally has a bandwidth of 4000. the signal to noise rat...
A: given - we can calculate the theoretical highest bit rate of a regular telephone line. a telephone n...
Q: Perform the following binary multiplications using Booth's algorithm, assuming signed two's compleme...
A: Booth's algorithm is use for calculation of multiplicand and multiplier respectively. The Booth mult...
Q: 1. (a) i. Convert 1610 to 8-bit sign-magnitude. ii. Convert -2410 to 8-bit sign-magnitude. iii. Perf...
A: The answer is given below:-
Q: 6. Given an random number generator rand5() that generates a uniform random integer in the range [1,...
A: By the given question we have rand5() function, which generates the random number between the 1 to 5...
Q: What does "First Come, First Serve" mean in the context of the scheduling procedure, and how can it ...
A: First Come First Served (FCFS) is the simplest and non-preemptive scheduling algorithm. In First Com...
Q: Write Shell script that take domain name as input from user and check that website is up or down usi...
A: Basically you have to use below script to achieve the required its using ping command with a timeout...
Q: Many new and better functions have been added to Microsoft Excel 2016. Which function in Excel 2016 ...
A: 1. The 'Tell Me' BoxThe "tell me" box is one of the newcomers to the Excel function and, without a d...
Q: Question 2: Student Grades Report Java Program In this question, write a complete Java program to pr...
A: Algorithm: Read a string in given format Then split the string with ";" as delimiter and store the ...
Q: Apply on Neumann machine working principle for arithmetic addition for two decimal number (40, 70) i...
A: Given The answer is given below.
Q: The C Preprocessor: The preprocessor provides facilities for including source code from other files ...
A: I will explain in detail about C preprocessor which is symbolized by using "#" : 1. The "#" preproce...
Q: Determine the output of the given program below if the inputted data are 1 and 3. #includecconio.h> ...
A: The given code is - #include<conio.h>#include <stdio.h>#define p printf#define s scanfin...
Q: Why is it advantageous that, in a system with cooperative multithreading, two threads communicate w...
A: Answer: The ability to run many pieces of a programme simultaneously is made possible by multithread...
Q: How do you create a file (document) using a vi text editor on the UNIX system? When using the Putty ...
A: How do you create a file (document) using a vi text editor on the UNIX system? When using the Putty ...
Q: Write 2 functions in C program thát calculate surface drea and the volume of 3 (three) boxes where t...
A: Logic:- iterate from i=1 to i=3 read l, b and h call volume(l,b,h) call(surfaceArea(l,b,h) disp...
Q: Information entropy for classification of m tuples in D is calculated as follows: m |(D) =2 P;log2 (...
A: Given: Goal: Check if statement is true or false.
Q: Write a remove method that removes all items between a Start Index and an End Index (Inclusive) in J...
A: The solution to the given problem is below.
Q: x = 1002 and fl(x) = 1001. Show the relative error is roughly smaller than the condition number time...
A:
Q: What are the discrepancies with this database? The student administration database has the same ID ...
A: The above question is used below
Q: Prove or disprove the following where A, B, and C are sets? You can provide a counterexample. A - (B...
A: To Prove : A-(B ⋂ C)=(A-B) ⋃ (A-C)
Q: 1- Given R0, RI, R2, and R3 followed by the indicated base; i- Convert each value into its correspon...
A:
Q: Modify sh.c so that all commands entered by the user are appended to a file called commands.txt. Th...
A: The code is given below.
Q: Can we specify a variable filed width in a scanf() format string? A. Yes B. No
A: yes
Q: ycertain whole number k ell may be different in various tasks). ituation in the arrangement (perhaps...
A: In this question, we are asked to display the minimum number operation in a programming language. Co...
Q: PLEASE HELP ME GET A CODE. THANK YOUUU ANYONE!
A: Program Explanation- Apply the main function. Declare the numberPlus10. ShowNumberPlus10(n). ShowNu...
Q: What decimal value does the 8-bit binary number 10101110 have if: a) it is interpreted as an unsigne...
A: The question is to write the answers related to binary number representation. As it a multipart type...
Q: entify the Boolean algebra law or rule that is used in the following statements AB'CD + ABD = DAB'C ...
A: For part a) ab'cd+abd=dab'c+dab As we can see both LHS and RHS are same but inorder to make RHS simi...
Q: In the system development process, the computer-aided software engineering (CASE) approach is freque...
A: INTRODUCTION: Following are the general advantages of adopting the CASE technique: The case study ...
Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002 as well all vehicles in its Guzzler line from model years 2004-2007. Given a variable modelYear and a String modelName write a statement that prints the message "RECALL" to standard output if the values of modelYear and modelName match the recall details.
Looking for help in this through Java
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Java Your program will read in a credit card number and expiration date from the user and validate the data. The program will continue to ask for user input until a valid number and date are entered. The rules for what is valid are specified below. readYear() and readMonth(int) methods Complete the readYear() and readMonth(int) methods. These methods ask the user to input the expiration year and month of their credit card. Each method should contain a loop inside the method so the code repeats until a valid month or year is entered by the user. If the user enters an invalid year or month, print an error message and ask them to try again. The readMonth(int) method reads in the month as a number. A valid month is any number between 1 and 12 (inclusive). A valid year is 2022 or later. readCreditCardNumber() method Complete the readCreditCardNumber() method. This method asks the user to input their credit card number. This method should contain a loop so the code repeats until a valid…Write a java code for this problem General Statement: Read a string and determine whether each left parenthesis ‘(‘ has a matching right parenthesis ‘)’. Input: The first line of the data set for this problem is an integer that represents the number of strings that follow. Each string is on a separate line. Output: Output either MATCH or NO MATCH. All letters are upper case. The output is to be formatted exactly like that for the sample output given below. Assumptions: All letters are upper case. ( and ) are the only enclosure symbols in the string. Discussion: The left parenthesis must come before the right parenthesis in order to count as a matched set of parentheses. Sample Input: 3(3 + (7 * 2) – 6) HELLO AND (WELCOME (TO THE) TCEA (CONTEST) TODAY) IS ((SATURDAY()) Sample Output: MATCHNO MATCH NO MATCHPart 2 - OddOrEven ClassIn bluej. Write a program that prompts the user to enter an integer. The program should display “The input is odd" to the screen if the input is odd and displays “The input is even" to the screen if the input is even. Hint: Consider using the mod (%) operator.
- in java pls: You have been asked to produce a report for a hardware store The name for each item is widget with the word designating the number of the widget. There are ten widgets in all. Your program will ask the user for the range of the cost for items, range of the price of the items in doubles. The range for the quantity in stock will be between 0 and 9999 as an int. Your program will randomly generate the cost of the items, price of the items the number in stock for this sample report based upon the ranges entered. Make sure the price of the item is greater than the cost. Profit is calculated as (price- cost) * in stock. Any time quantity falls below 25 the reorder column will display Yes, otherwise it will display No. Your chart will generate data for ten items and the chart will look like the one below. Part QuantityName Cost Price in Stock…Write program that can be used by a small theater to sell tickets for performances. The theater's auditorium has 15 rows of seats, with 30 seats in each row. The program should display a screen that shows which seats are available and which are taken. For example, the following screen shows a chart depicting each seat in the theater. Seats that are taken are represented by an * symbol, and seats that are available are represented by a # symbol: Seats 123456789012345678901234567890 Row 1 ***###***###*########*****#### Row 2 ####*************####*******## Row 3 **###**********########****### Row 4 **######**************##****** Row 5 ********#####*********######## Row 6 ##############************#### Row 7 #######************########### Row 8 ************##****############ Row 9 #########*****############**** Row 10 #####*************############ Row 11 #**********#################** Row 12 #############********########* Row 13 ###***********########**###### Row 14…Use JAVA to create a card game in which the dealer shuffles the deck and deals 13 cards out of the 52 to the player. The player sorts her hand and says whether it includes the King of Hearts. Repeat this process 4 times so that all the 52 cards are dealt. The player should return true or false without writing to the console. In response, the dealer should write on the console, "You won!" or "You loose again." Also create a unit test for the win and loose cases. Create an orignal code with Java card graphics. Please do not reshare a similar answer!
- Write a Java program correctly that generates a report of proof of vaccination against COVID-19 for the peoplewho received their dose of vaccination. Write a program which:1. Display a welcome message.2. Then prompts the user to enter the following:• First name, with first letter uppercase, which is then stores in a variable of type String.• Last name, with first letter uppercase which is then stores in a variable of type String.• Day of birth, set as a number between 1 and 31, which is then stores in a variable of typeint.• Month of birth, set as a number between 1 and 12, which is then stores in a variable of typeint.• Year of birth, set as a number between 1920 and 2006, which is then stores in a variable oftype int.• Day of vaccination, set as a number between 1 and 31, which is then stores in a variable oftype int.• Month of vaccination. set as a number between 1 and 12, which is then stores in a variableof type int.• Year of vaccination, set as a number between 2020 and 2021,…For the code in java below it shows a deck of 52 cards and asks the name of the two players and makes both players draw five cards from the deck. What I want to be added into the code is that both Players are people that can select what card they pick and Player A starts. Player A picks a card in his/her hand. Player B gets to choose the two cards which add to the value of Player A’s card, if player B lies and the two cards they choose do not add up to A's card, player B loses a point, if player B does not have two cards whose value adds to the value of Player A’s card, then no one gets a point. Player’s A card (if selected) and the two cards from Player B are discarded both players draw back to 5 cards from the deck. Main class code: import java.util.ArrayList; import java.util.Scanner; import java.util.List; import java.util.Random; class Main { publicstaticvoid main(String[] args) { // card game, two players, take turns. String[] suits = {"Hearts", "Clubs", "Spades",…Create a Java class called ZeroToNine that checks if a given 10-digit number has all the 10 digits (one of each) Accept a 10 digit number from the user Validate that the input number is 10 digits long. If the validation is successful: Use a loop, decision structures and the relevant arithmetic operators to determine if each of the 10 digits are included in the number Output a descriptive sentence based on the result Requirements: You cannot convert the number to a string. You must use arithmetic operators and a loop to determine the output. Since we have not started the unit on Arrays, you cannot use Arrays or any other data structure to solve this problem. Limit your syntax to the content covered so far in this term Examples: Input: 1234567899 Output: 1234567899 does not include all digits 0 to 9 Input: 2134658790 Output: 2134658790 has all the digits 0 to 9 Input: 123456789 Output: 123456789 does not include all digits 0 to 9
- Use java code Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking your weight in kilograms and dividing by the square of your height in meters. The interpretation of BMI for people 16 years or older is as follows: BMI below 16 16-18 19-24 25-29 30-35 above 35 Interpretation seriously underweight underweight normal weight overweight seriously overweight gravely overweight Write a Java program that prompts the user to enter a weight in kilograms and height in meter and display the BMI. Use nested if- else statements to solve this exercise. Here is a sample run: Enter weight in kilograms: 66.22 Enter height in meters: 1.788 Your BMI is 20.71353142 You are normal weightDevelop a Java application that will determine the gross pay for each of three employees using an array, a loop, the if-else statement, and the JOptionPane dialog box for input. The company pays “straight time” for the first 40 hours worked by each employee and pays “time and a half” for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee: employee name, number of hours each employee worked, and the hourly rate for each employee. Your program should determine the gross pay for each employee and store it into an array. It also display each employee’s gross pay with his/her name as output. Use input dialogs to input the data.Java program At a certain university, students have to submit their exams online. The administration decides that for each minute of late submission, 5 points are deducted. Write a program that asks the user for his initial grade and the late submission time (in minutes), and then displays the final result. Sample Run 1: Enter your initial grade: 82 Enter the late submission time (in minutes): 6 Your final grade is 52 Sample Run 2: Enter your initial grade: 115 Grades should be between 0 and 100 Sample Run 3: Enter your initial grade: 43 Enter the late submission time (in minutes): 10 Your final grade is 0 Sample Run 4: Enter your initial grade: 72 Enter the late submission time (in minutes): -2 Time should be positive