Need to add a loop until a sentinel value in entered. entering “Stop” for the name for the program end. how can i add a loop to create bank accounts
Q: Write a short note on the short read alignment problem.
A: Introduction : Understanding the location of a sequence in the genome is done by short-read…
Q: Let's suppose there is an organization with two departments with each department requiring 120 host…
A: As given, there is a company with two departments, each of which needs 120 host addresses. Both the…
Q: Hoe do I insert excel with data in the question?
A: The question has been answered in step2
Q: QUESTION 12 What is the period of the following periodic signal: y = 3 sin (2x 33,000 t) 33,000 sec…
A: In this question we have been given a equation for a periodic signal and we need to find the period…
Q: Why must you be careful when comparing floating-point values for equality?
A: What does "floating point value" refer to? A floating point value is a whole number with a decimal…
Q: how do you Calculate a query in access database on how many customers there are for each lawn size?…
A: To write SQL query directly on MS Access, Open the Database. 1. Select Design View, and click OK.…
Q: 4. Practice with the iteration method. We have already had a recurrence relation of an algorithm,…
A: Iteration method : A "brute force" approach to solving a recurrence relation is the iteration…
Q: IEEE 754 floating point numbers (single precision) use the following format (the numbers on the top…
A: a) The standard acceleration of gravity is roughly 9.80665 meters per square seeconds. Explain step…
Q: Question 1 Program the neural network with two neurons in the hidden layer, and a single neuron in…
A: The training set error is the sum of squared errors for each training example divided by 2 times the…
Q: 11 State security measure applied by VPN for security.
A: Inroduction :- Virtual private network (VPN) services are in extremely high demand because to…
Q: Show that L (a | i21) is not regular.
A: let L be a regular language we can able to design a DFA with n states w∈L w≥nw=xyzxy≤ny≥0W= aiz…
Q: Write a program that reads an integer n from the keyboard then computes the first n terms in may the…
A: Introduction: Here we have to write a c program that reads an integer n from the keyboard then…
Q: Use the function design recipe to develop a function named alarm_clock. The function has two…
A: The Python code is given below with code and output screenshot Happy to help you ?
Q: in purpose of a mobile device management software installation for students, teachers, and…
A: Introduction: IT administrators can use Mobile Device Management (MDM) to securely monitor and…
Q: Write a program to approximate the derivatives of eª, cos(x) and sin(x) at x = 0 using the limits de…
A: Code: #include<stdio.h>#include<conio.h>#include<math.h>void Derivative(int n){…
Q: What is Cross-validation in Machine Learning?
A: Cross-validation in Machine Learning:-
Q: Q. 12 Explain TLS.
A: In this question we need to explain the term Transport layer security (TLS) in networking or cyber…
Q: hat protocols we can use for following an email to a mail server from a mail a mail client to…
A: Lets see the solution.
Q: 4. What is the different between tiers and layers? Do the layers maps to tiers on a one-to-one base?
A: What is the different between tiers and layers? Do the layers maps to tiers on a one-to-one base?
Q: Explain why in the Cipher Block Chaining (CBC) mode the en ryption of different blocks needs to be…
A: CBC (short for cipher-block chaining) which refers to the AES block of the cipher with the mode that…
Q: State security measure applied by VPN for security.
A: The question is the write the security measure applied by VPN for security.
Q: Implement a class Stack that manages an array list of elements of type E. Provide methods push,…
A: Implement a class Stack <E> that manages an array list of elements of type E. Provide…
Q: 4, Fill in the blanks the name of Memory Hierarchy LO: L1: L2/L3: L4: L5: L6:
A: LO: Register L1: cache memory L2/ L3: cache memory / main memory L4: main memory L5: local diskL6:…
Q: Implement the Shape hierarchy -- create an abstract class called Shape, which will be the parent…
A: Following is the full JAVA code for the Shape hierarchy as described in the question: Shape.java :…
Q: When to Avoid Using Python?
A: solution is given in next step:-
Q: (x+y)' + xy'z z) + (x+y+z)'
A: Solution - According to bartleby policy, I can only answer first question. Please post next question…
Q: You can reach us at: ( 555-8989 Email: Address: 8989 Rescue Drive, Ocala, FL 34471 href…
A: Solution in step 2:
Q: Discuss NewSQL and what it attempts to do.
A: A distinctive database system called NewSQL combines horizontal scalability and ACID compliance. In…
Q: Give the view of OS as an extended machine
A:
Q: Compare and contrast the various scaling methods. Explain why scalability is a key business issue…
A: Let's see the answer: If you use a scalable hosting option, you can expand. Downtime must be…
Q: Total = a + b + c; Average = Total A. B. C. D. / 6; Logic Errors Run-time Errors None of the above…
A: The above question is solved in step 2 :-
Q: You may have come across the concept in your study (or your reading) that hidden implementations are…
A: Black Box Testing The testing method known as "black box testing" doesn't have access to…
Q: Make a C# program that continuously asks the user to enter the student number, Test1 mark, Test2…
A: The required C# code is as follows using System;using System.Threading; class Program{ static…
Q: What is a foreign key constraint? Why are such constraints important? What is referential…
A: Foreign key A column or columns of information in one table that link to the main key data inside…
Q: Q.29 Explain Digital Signature Standard.
A:
Q: java script code to implements the selection sort.
A: Selection sort Selection sort is useful for determining whether everything's been sorted. It is…
Q: JAVA CODE PLEASE Functions with 2D Arrays Practice ll by CodeChum Admin Write a function named…
A: Answer:
Q: Which accessibility characteristic is a solution for users with hearing impairment.
A: Answer: Compression accessibility characteristic is a solution for users with hearing impairment.…
Q: 89 90 91 92 93 94 95 96 97 void sequence::start() current index = 0; } template void sequence::…
A: #include "sequence1.h" must be declared before its usage. \\it can debug lines 89,95 int…
Q: Write pseudocode for a brute force algorithm for motif finding. Comment on complexities. Use proper…
A: The question has been answered in step2
Q: Given the 4-bit adder/subtractor circuit below, which inputs can perform 2-7? V By A₂ FA -5 Sy M=0,…
A: According to the information given:- We have to follow the instruction in order to choose the…
Q: Implement a class Moth that models a moth flying along a straight line. The moth has a position,…
A:
Q: I am trying matrix multiplication but there is some busgs which 2 not solved can you help me? 3 4 5…
A: Introduction: In this question, we are given a piece of code with some bugs and need to correct the…
Q: Python Programming only please no java Create a PollMachine class that can be used for a simple…
A: Code:- import sysdef userInput(talliesYes, talliesNo): print('Enter your name') user = input()…
Q: You have an integer matrix representing a plot of land, where the value at that location represents…
A: We may begin by just strolling through the array. It's simple to discover water: when there's a…
Q: Draw the hierarchy chart and then plan the logic using a flowchart for a program needed by…
A: The program is written in Python. Check the program screenshot for the correct indentation. Please…
Q: Q.15 Explain cryptographic hash function.
A: Cryptographic Hash function (CFH): A cryptographic hash function is an algorithm that takes an…
Q: Write an algorithm that fills the matrix T of N elements of integr, then sort it using selection…
A: Solution in Step 2:
Q: public class LLNode{ private Name name; private LLNode next; public LLNode(){…
A: For your given .java code, the things you have asked for is written and mentioned below. Features…
Q: 2. Add the following pairs of 8-bit numbers (shown in hexadecimal) and indicate whether your result…
A: Answer: From the above questions answer is a) right b) right c) right d) wrong e) right f) wrong
Step by step
Solved in 3 steps with 1 images
- public int getPowerUse(){ return super.getPowerUse() + contents * powerRating; //////////////////////////////////////////////// if (args[0].equals("REFRIGERATOR")) { String manufacturer = args[1]; String serialNo = args[2]; int basePower = Integer.parseInt(args[3]); int powerRating =Integer.parseInt(args[4]); int capacity = Integer.parseInt(args[5]); Refrigerator rf=new Refrigerator(manufacturer,serialNo, basePower, powerRating, capacity); things[rf.getId()]=rf; returnval = rf.getId(); }Code example 2-1import java.util.Scanner;public class InvoiceApp {public static void main(String[] args) {Scanner sc = new Scanner(System.in);String choice = “y”;While (choice.equals(“y”)) {System.out.print("Enter subtotal: ");double subtotal = sc.nextDouble();double salesTax = subtotal * .0875;double invoiceTotal = subtotal + salesTax;String message = “Subtotal = ” + subtotal + “\n”+ “ Sales tax = ” + salesTax + “\n”+ “Invoice total = ” + invoiceTotal + “\n\n”System.out.println(message);System.out.print(“Continue? Enter y or n: ”);Choice = sc.next();}}} (Refer to code example 2-1.) If the user enters 100 the first time the while loop is executed, what will the program display at the console? a. Subtotal: 100.0 Sales tax: 8.75 Invoice total: 108.75 b. Subtotal = 100.0 Sales tax = 8.75 Invoice total = 108.75 c. Subtotal = 100.0 Sales tax = 8.75Invoice total = 108.75 d. Subtotal = 100.0 Sales tax = 8.75Invoice total = 108.751- class Excep { 2- public static void main(String[] args){ 3 try{ int arr[]=(1,2}; 4 int x = arr[1]/arr[0]-1; 6 7 catch(ArithmeticException e) 8- { 9. System.out.printin("divide by e"); 10 } 11 catch(ArrayIndexOutofBoundsException e) 12- { 13 System.out.println("wrong indexing"); 14 15 finally 16- { 17 System.out.println("Runtime error"); 18 } 19 }} 20 Answer:
- public static void main(String[] args) throws IOException{ BufferedReader b=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Input instructor Salary: "); double salary=Double.parseDouble(b.readLine()); System.out.print("Input Academic Rank: "); String rank=b.readLine(); double tax=0; if(rank.equalsIgnoreCase("Assistant")) tax=salary*9/100; else if(rank.equalsIgnoreCase("Associate")) tax=salary*12/100; else if(rank.equalsIgnoreCase("Lecturer")) tax=salary*7/100; double net_salary=salary-tax; System.out.println("\nThe amount of Tax is BD "+tax); System.out.println("The Net Salary is BD "+net_salary); } }// ArtShow.java - This program determines if an art show attendee gets a 5% discount // for preregistering. // Input: Interactive. // Output: A statement telling the user if they get a discount or no discount. import java.util.Scanner; public class ArtShow { public static void main(String args[]) { Scanner s = new Scanner(System.in); String registerString; System.out.println("Did you preregister? Enter Y or N: "); registerString = s.nextLine(); // Test input here. If Y, call discount(), else call noDiscount(). System.exit(0); } // End of main() method. // Write discount method here. // Write noDiscount method here. } // End of ArtShow class.StringFun.java import java.util.Scanner; // Needed for the Scanner class 2 3 /** Add a class comment and @tags 4 5 */ 6 7 public class StringFun { /** * @param args not used 8 9 10 11 12 public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print("Please enter your first name: "); 13 14 15 16 17 18 System.out.print("Please enter your last name: "); 19 20 21 //Output the welcome message with name 22 23 24 //Output the length of the name 25 26 27 //Output the username 28 29 30 //Output the initials 31 32 33 //Find and output the first name with switched characters 34 //All Done! } } 35 36 37
- import java.util.*;public class TestAverage {public static void main(String[] args) {int test1, test2, test3, sum;Scanner reader = new Scanner(System.in);System.out.println("Enter test 1");test1 = reader.nextInt();System.out.println("Enter test 2");test2 = reader.nextInt();System.out.println("Enter test 3");test3 = reader.nextInt();sum = test1 + test2 + test3;System.out.println("The sum is " + sum);System.out.println("The average is " + sum / 3);}}a. Briefly explain what this code does.b. There is one logic error in this code explain what is wrong and how to fix it.Fix all the errors and send the code please // Application looks up home price // for different floor plans // allows upper or lowercase data entry import java.util.*; public class DebugEight3 { public static void main(String[] args) { Scanner input = new Scanner(System.in); String entry; char[] floorPlans = {'A','B','C','a','b','c'} int[] pricesInThousands = {145, 190, 235}; char plan; int x, fp = 99; String prompt = "Please select a floor plan\n" + "Our floorPlanss are:\n" + "A - Augusta, a ranch\n" + "B - Brittany, a split level\n" + "C - Colonial, a two-story\n" + "Enter floorPlans letter"; System.out.println(prompt); entry = input.next(); plan = entry.charAt(1); for(x = 0; x < floorPlans.length; ++x) if(plan == floorPlans[x]) x = fp; if(fp = 99) System.out.println("Invalid floor plan code entered")); else { if(fp…Question 2. package sortsearchassigncodeex1; import java.util.Scanner; import java.io.*; // // public class Sortsearchassigncodeex1 { // public static void fillArray(Scanner inputFile, int[] arrIn){ int indx = 0; //Complete code { arrIn[indx] = inputFile.nextInt(); indx++; } }
- void exchangeByValue (int x, int y) { printf ("\n\nOriginal x and y received: $d $d", x, y); int temp; temp =x; x=y; y=temp; printf("\nNew: id $d", x, y): } void exchangeByRef (int *x, int *y) { printf ("\n\nOriginal x and y received: $d $d", *x, *y); int temp; temp = *x; *x = *y; *y = temp; printf ("\nNew: id $d", *x, *y); } а. Show the output b. Trace the output (show the tracing using drawing). Explain your answer if necessary.import java.util.Scanner; public class CharMatch { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); String userString; char charToFind; int strIndex; userString = scnr.nextLine(); charToFind = scnr.next().charAt(0); strIndex = scnr.nextInt(); /* Your code goes here */ }}Programming Exercise 5-5A Instructions PastPresentFuture.java >- Terminal 1 import java.util.*; sandbox $ | 2 import java.time.*; Write an application that prompts a user for a month, day, 3 public class PastPresentFuture { Lal and year. Then display the appropriate message: public static void main (String args[]) { // Write your code here 1. YYYY is not this year } 7 } 2. MM was a month earlier this year 8 9 3. MM is a month later this year 10 4. MM is this month An example of the program is shown below: Enter a month >> 05 Enter a day >> Enter a year (four digits) >> 2021 5 is a month later this year Grading Write your Java code in the area on the right. Use the Run button to compile and run the code. Clicking the Run Checks button will run pre-configured tests against your code to calculate a grade. Once you are happy with your results, click the Submit button to record your score.