1. Briefly explain the following reading methods in your own words: i. Skimming ii. Scanning iii. Close reading iv. SQ3R
Q: Review the following program: import urllib.request, urllib.parse, urllib.error fhand =…
A: Using urllib you can treat a web page much like a file. You simply indicate which web page you…
Q: Please help me answer this in python programming. Attached is a data to help with the problem.
A: required:
Q: 5.4 Using Packages : Case Study > ©BinaryOperation arithmetic operand1: double operand2: double…
A: Given that Write a code in Example shown in the picture
Q: Sample Run The following is a sample run of the program. You must change the wording of the text.…
A: Answer: Our Instruction is answer the first three part from the first the first part.
Q: Choose which of the options below should replace ### in this Python code? class Actor: def ###…
A: Here, Code is given.
Q: blank question: Q. Abbreviation of TB in cs is_____________.
A: Here have to determine about tb abbreviation.
Q: import java.util.Scanner; import java.io.FileWriter; import java.io.IOException; // Import the…
A: please refer below code and output : Language used is JAVA: import java.util.*;import…
Q: import java.util.*; import java.lang.*; import java.io.*; class BinaryToDecimal { // *More…
A: Required: to complete the given code.
Q: This is a debugging question I am struggle with - The files provided in the code editor to the…
A: In "DebugTen1.java" file, The function name should be "main()", and not "mane()". The function…
Q: using System; class TicTacToe { Console.WriteLine("Do you want be X or O: "); Console.Write("Press 1…
A: // A C++ Program to play tic-tac-toe #include<bits/stdc++.h>using namespace std; #define…
Q: Which programming technique allows you to execute two alternatives and the condition determines…
A: Please find the answer below
Q: programming: C# (Csharp) Help me please kindly apply the C# METHOD on my program Here is my code:…
A: Below is the required code of swapping using method in C#: using System; namespace Program { //…
Q: 1. Create a search method in your program that allows the user to find a tax payer and display their…
A: import java.util.Scanner; class Income { public static void main(String args[]) { double tax=0,it;…
Q: Write the flowchart of this code import java.io.*; import java.util.Scanner; public class…
A: The flowchart is a pictorial representation of the problem-solving steps. The steps in the flowchart…
Q: O Write a literate version of the code O EXPLAIN HOW YOUR PROGRAM WORKS O Write a program using…
A: public class Attraction { // instance variables private String name; private int…
Q: Language: Python Goal: implement decry
A: Coded using Python 3.
Q: There is an ERROR in this code: import java.util.Scanner; public class TestPhoneBook { public…
A: Solution: Corrected code: Note: changes made shown with bold in code- TestPhoneBook.java…
Q: Ex. If the input is: 4 plates 100 spoons 200 cups 150 forks 200 the output is: 200 forks…
A: Actually, the code has given beneath:
Q: import java.util.Scanner; public class Relational { public static void main(String [ args) { int…
A: Given To complete the java program. import java.util.Scanner; public class EqualityAndRelational…
Q: random.seed (30) a data = get_word(['this', 'is', 'a', 'test']) print (data) random.seed (50) data…
A: import random def get_word(words): return random.choice(words) # here testing is done based on #…
Q: Examine the code and write - What is the content of the first 100 characters of text at the end of…
A: Answer : // these are the imports needed to run the program import…
Q: Focus on string operations and methods You work for a small company that keeps the following…
A: GIVEN:
Q: 2. Write a program that asks the user to enter a year, and then displays whether that year is a leap…
A: As per our guidelins we are allow to provide only one solution, please upload rest of them sepratly…
Q: Complete the following Questions of SAS Program: A SAS Statement always end with what punctuation?…
A: Let us know what is SAS- A SAS data step statement is types of SAS language element and it runs…
Q: Explain what is the difference between the bootstrap and jackknife methods in an R code
A: The difference between bootstrap and jackknife methods in an R code is as follows:
Q: import java.util.*; import java.io.FileWriter; import java.io.IOException; public class Main {…
A: Below is the explanation of the code and sample output and contents of report.txt file:
Q: void getInput(){ for(int i =0; i < studentName.length; i++){ System.out.print("Student name: ");…
A: Refer to step 2 for the answer.
Q: Please help me make this java encryption and decryption code uncrackable The code is below import…
A: Define EncryptMsg() method means to encrypt the original message. Define DecryptMsg() method means…
Q: In C++, what is the difference when using :: and the . symbol in OOP?
A: The dot operator is used to call the members of the class. Also by using :: we can call the members…
Q: The Scanner class .next() method will read
A: 1) The Scanner class .next() method will read:
Q: Catch exceptions for array index out of bounds // or dividing by 0
A: Correct code: To get the correct output, we need to put all statements of try block within for loop…
Q: include #include #include #include #include #ifdef _WIN32 #include #else #include…
A: It is defined as a general purpose programming language and widely used now a days for competitive…
Q: Write in C sharp programming Write a program that encodes and decodes a string using given…
A: Objective: This program performs encryption or decryption of a string using a given key value. The…
Q: en inline, bl
A: The difference between inline, block and inline-block?
Q: Which of the following are objects or operators used for input/output in C++ (there are 6 correct…
A: openfile :- open () is used to open a file Getdata :- function defined to Getdata it is not inbuilt…
Q: Give a brief description of ReadChar.
A: Introduction : The Reader Class's read (char []) function in Java reads the provided characters into…
Q: lowchart of this code below
A: To draw a flowchart, the following symbols are used: The start and end of a program are indicated…
Q: This code is giving me problems like that if i drive 1km that it equals R3000 but i cannot see where…
A: Required: This code is giving me problems like that if i drive 1km that it equals R3000 but i cannot…
Q: REUPLOAD: I need to fill the program to its designated output I have inserted sample runs and the…
A: Note: This code should be rewritten instead of copying to the compiler otherwise it will throw a…
Q: using System; class TicTacToe { static void Print(char[] board) { Console.WriteLine();…
A: In the given program, you have hard coded the data by giving static values. But you wanted to ask…
Q: 13. What are the two categories of variables in PS? 14. What are some of the types and uses of…
A: NOTE: ACCORDING TO COMPANY POLICY WE CANNOT SOLVE MORE THAN THIS. YOU CAN RESUBMIT THE QUESTION…
Q: using System; class TicTacToe { staticint player = 1; staticint choice; staticvoid Print(char[]…
A: In the given code, the main method is written inside Print() method, which is not correct. So write…
Q: 1. Write a program that asks the user to enter three names, and then displays the names sorted…
A: 3) Java program to print star pattern for given length of integer .
Q: using System; class TicTacToe { staticvoid Print( char[] board) { Console.WriteLine();…
A: Given: using System; class TicTacToe { staticvoid Print( char[] board) { Console.WriteLine();…
Q: Question and compiler output with error is provided in the attachment. And my solution is provided…
A: Coded using C++.
Q: I need help with getting my code to compile. It's written in C# and i'm a beginner. it's giving me…
A: Below is the correct code:
Q: Which of these method of String class is used to obtain character at specified index i? a-…
A: java String charAt() method returns a char value at the given index number.
Q: Focus on string operations and methods You work for a small company that keeps the following…
A: Actually, program is a executable software that runs on a computer.
Q: import java.util.*; import java.io.*; public class Assignment public static void main(String args[])…
A: The above program is provided in Java language has one error
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
- Need help with step 3. Below are my work for steps 1 and 2. THIS IS MY CODE FOR STEP 1 - import java.util.Scanner;//to readinputpublic class Main{ public static void main(String[] args) { String s1,s2,s3;//to store 3 names Scanner sc = new Scanner(System.in);//to read input //reading 3 names from user System.out.println("Enter three names :"); s1=sc.next(); s2=sc.next(); s3=sc.next(); System.out.println("Descending order:"); //printing 3 names, in descending order if(s1.compareTo(s2)>=0 && s2.compareTo(s3)>=0)//if s1>=s2>=s3 { System.out.println(s1+"\n"+s2+"\n"+s3); } else if(s1.compareTo(s3)>=0 && s3.compareTo(s2)>=0)//if s1>=s3>=s2 { System.out.println(s1+"\n"+s3+"\n"+s2); } else if(s2.compareTo(s1)>=0 && s1.compareTo(s3)>=0)//if s2>=s1>=s3 { System.out.println(s2+"\n"+s1+"\n"+s3); } else if(s2.compareTo(s3)>=0 && s3.compareTo(s1)>=0)//if s2>=s3>=s1 {…import java.util.Scanner; public class Shady RestRoom 2 { // Modify the code below public static void main (String args[]) { int selection; int price; String result; final int QUEEN = 1, KING = 2, SUITE = 3; final int QPRICE = 125, KPRICE = 139, SPRICE = 165; final String QSTRING = "Queen bed", KSTRING = "King bed"; SSTRING = "Suite with a king bed and pull-out couch"; INVALIDSTRING = "an invalid option"; Scanner in = new Scanner(System.in); System.out.println("\t\n\nMenu\n"); System.out.println("(" + QUEEN + ") " + QSTRING); System.out.println("(" + KING + ") " + KSTRING); System.out.println("(" + SUITE + ") " + SSTRING); System.out.print("Enter Selection (1, 2, or 3) >> "); selection = in.nextInt(); if(selection == QUEEN) { result = QSTRING; price = QPRICE; } else if(selection == KING) { result = KSTRING; price = KPRICE; } else if (selection == SUITE) { result = SSTRING; price = SPRICE; } else { result = INVALIDSTRING; price = 0; } System.out.println("You selected " + result +…This is my code for step 1 below - need help import java.util.Scanner;//to readinputpublic class Main{ public static void main(String[] args) { String s1,s2,s3;//to store 3 names Scanner sc = new Scanner(System.in);//to read input //reading 3 names from user System.out.println("Enter three names :"); s1=sc.next(); s2=sc.next(); s3=sc.next(); System.out.println("Descending order:"); //printing 3 names, in descending order if(s1.compareTo(s2)>=0 && s2.compareTo(s3)>=0)//if s1>=s2>=s3 { System.out.println(s1+"\n"+s2+"\n"+s3); } else if(s1.compareTo(s3)>=0 && s3.compareTo(s2)>=0)//if s1>=s3>=s2 { System.out.println(s1+"\n"+s3+"\n"+s2); } else if(s2.compareTo(s1)>=0 && s1.compareTo(s3)>=0)//if s2>=s1>=s3 { System.out.println(s2+"\n"+s1+"\n"+s3); } else if(s2.compareTo(s3)>=0 && s3.compareTo(s1)>=0)//if s2>=s3>=s1 { System.out.println(s2+"\n"+s3+"\n"+s1); }…
- 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.75Code 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();}}}38. (Refer to code example 2-1.) If the user enters “Y” when asked if he/she wants to continue, the application will a. repeat the while loop b. display a blank line, then repeat the while loop c. End3.9 lab Please use already provided java starter code to complete your answer! import java.util.Scanner;import java.util.InputMismatchException; public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); /* Type your code here. */ }}
- import java.util.Scanner; public class SMSTranslator { public static void main(String[] args) { Scanner console = new Scanner(System.in); String getAbbreviation = ""; { String BFF = "The translation is Best Friends FOREVER!!! :-)"; String BTE = "The translation is Blew The Exam :-("; String STT = "The translation is Spill The Tea ;-)"; getAbbreviation = console.next(); System.out.print("Enter SMS abbreviation: "); public Class.decode Abbreviation(console) if (getAbbreviation.compareTo("BFF") == 0) { System.out.println(BFF); } else if (getAbbreviation.compareTo("BTE") == 0) { System.out.println(BTE); } else if (getAbbreviation .compareTo("STT") == 0) { System.out.println(STT); // if input is out of dictonary } else{ System.out.println("The translation is…JAVA PROGRAM Modify this program with further modifications as follows: The test case must pass when uploaded to Hypergrade. import java.io.*;import java.util.*;public class Main{ public static void main(String[] args) { List<String> girlsNames = loadNames("Girlnames.txt"); List<String> boysNames = loadNames("Boynames.txt"); if (girlsNames == null && boysNames == null) { System.out.println("Both files are missing. Exiting..."); return; } else if (girlsNames == null) { System.out.println("Girlnames.txt is missing. Exiting..."); return; } else if (boysNames == null) { System.out.println("Boynames.txt is missing. Exiting..."); return; } Scanner scanner = new Scanner(System.in); while (true) { System.out.print("Enter a name (or 'QUIT' to exit): "); String input = scanner.nextLine(); if…Choices: a. abs b. absoluteValue c. ceil d. ceiling e. char f. double g. floor h. import java.lang.*; i. import java.util.*; j. import java.util.Character; k. import java.util.Math; l. int m. isDigit n. isNumeric o. length p. max q. min r. sqrt s. String t. substring u. toCapital v. toCapitalCase w. toUpperCase x. valueOf()
- Java Program ASAP Modify this program so it passes the test cases in Hypergrade becauses it says 5 out of 7 passed. Also I need one one program and please correct and change the program so that the numbers are in the correct places as shown in the correct test case. import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException;import java.util.ArrayList;import java.util.Arrays;import java.util.InputMismatchException;import java.util.Scanner;public class FileSorting { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (true) { System.out.println("Please enter the file name or type QUIT to exit:"); String fileName = scanner.nextLine(); if (fileName.equalsIgnoreCase("QUIT")) { break; } try { ArrayList<String> lines = readFile(fileName); if (lines.isEmpty()) { System.out.println("File " +…import java.util.Scanner; public class Inventory { public static void main (String[] args) { Scanner scnr = new Scanner(System.in); InventoryNode headNode; InventoryNode currNode; InventoryNode lastNode; String item; int numberOfItems; int i; // Front of nodes list headNode = new InventoryNode(); lastNode = headNode; int input = scnr.nextInt(); for(i = 0; i < input; i++ ) { item = scnr.next(); numberOfItems = scnr.nextInt(); currNode = new InventoryNode(item, numberOfItems); currNode.insertAtFront(headNode, currNode); lastNode = currNode; } // Print linked list currNode = headNode.getNext(); while (currNode != null) { currNode.printNodeData(); currNode…void getInput(){for(int i =0; i < studentName.length; i++){System.out.print("Student name: ");studentName[i] = keyboard.nextLine();System.out.print("Studnet ID: ");midTerm1[i] = keyboard.nextInt();}keyboard.close();} Can't put full student name becuase nextLine();