Sum of digits algorithm Stop 1: Get number by user Step 2: Get the modusremainder of the number Step 3: sum the remainder of the number Stop 4: Divde the number by 10 Stop 6: Ropoat the stop 2 while number is graator than 0 CODE DISSEC TION Int netr, sum-0,mdata Screen prompt
Q: There are n identically looking coins one of which is fake. There is a balance scale, but there are…
A: Since, its given that :- n identically looking coins one of which is fake coin and is heavier than…
Q: Computer Science Encyrpt this message using AES algorithm for Round1. All encryption steps has to…
A: The answer is given below ....
Q: GRADED ACTIVITY #6 (M8.1): REPETITION CONTROL STRUCTURE (WHILE, DO-WHILE) Instruction: A…
A: EXPLANATION: - The Scanner class is imported to read the user input. The user is given the prompt…
Q: k= 0 finalrow Cells(Rows.Count, 1).End(xlUp).Row For i = 7 To finalrow step 2 k k+Cells(i, 2).Value…
A: Answer: 50
Q: List the steps necessary to read a word from memory in the 4 x 3 memory circuit shown in Figure
A: The answer is
Q: Take a look at the series below: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55… To form the pattern, start by…
A: Given: Take a look at the series below:1, 1, 2, 3, 5, 8, 13, 21, 34, 55… To form the pattern, start…
Q: What is the output of this algorithm in the computer? Step 1: Start Step 2: Declare variables numl.…
A: Code Screenshot :
Q: 3. Create a CFG for the following RE: (01 | 0)* 1 (10| 0)*
A: Solution: Given, RE = (01 | 0)* 1 (10 | 0)+ Then set of language for regular…
Q: Sample Output: Find Size of fundamental data types : ------------------------------------------ The…
A: To print the given output, use cout function to print the strings directly, but for the numbers in…
Q: A student took four quizzes in a term and would like to compute their average. He also would like to…
A:
Q: Create a Kotlin program that will assign a number to variable num. Determine if num is an odd or an…
A: This program is written in Kotlin. You can give the input in num variable.
Q: Exercise #3: To attract more clients, a local store marks down the prices of items by a certain…
A: ALGORITHM:- 1. Take input for the selling price and discount percentage from user. 2. Calculate the…
Q: using PSEDUCODE The GTUC Company wants to produce a product orders report from its product orders…
A: Pseudocode: This is one of the approaches that could be used to represent a program's algorithm.…
Q: LABView Draw by hand the diagram for a program that displays a count that increments 4 times per…
A: Below i have made the program.
Q: Can I get the Java code for this image below?
A: A Java program for the given criteria is as follows, File name: “Numberguessing.java” import…
Q: Binary-Decimal / Decimal Binary . Between 0 and 255 a number will be decided randomly by computer.…
A: Program description random.randint() is the function used for choosing a random integer between 0 to…
Q: Transcribed image text: Type in the language of lambali 8086 using the Amletor program. Using the…
A: .MODEL SMALL .STACK 32 .DATA STR1 DB 0DH,0AH, 'ENTER THE STRING :- $'…
Q: Math.floor (1.4) returns O 1.5 O 2.0 O 0.0 O 1.0
A: According to the Question below the Solution: The Math.floor() function returns the largest…
Q: Greatest Common Divisor (GCD) The greatest common divisor (GCD) of two integers is the largest…
A: Greatest Common Divisor (GCD) in Assembly Language (MIPS):
Q: (Computer mini-project) Area of a unit circle equals Tt. Cover a circle with a 2 by 2 square and…
A: Generate random numbers from the standard uniform distribution. Use rand to generate 1000 random…
Q: Students in the BIT level 300 class optained various grades in a Mid sem exam. A computer program is…
A:
Q: In Python Chack the picture and fix code please. This is the Required Output example: Menu…
A: import pickle#dictionary to store recordsdictionary=dict()def add_record(name,…
Q: Python: 2048 games Board = list[list[str]] # Checks whether a given board has any # possible…
A: Coded using Python 3.
Q: 1. The RE is known as follows: (ab|b*) a*b question: b. Make the DFA and draw the result.
A: Given Regular expression is (ab|b*)a*b To convert the regular expression in to DFA, The kleen…
Q: Create a C++ program . The user will be apple choose from a menu : 1. Add a contact 2. Remove a…
A: The ask is to build a program in CPP to provide menu for managing the contacts.
Q: Using phyton code: First, ask the user the following three questions and store the answers in a…
A: Code is given below # It will be a nested list nestedListOfInputs = [] # Run a for loop 6 times…
Q: dataval1 BYTE 10hval2 WORD 8000hval3 DWORD 0FFFFhval4 WORD 7FFFh Write instructions that subtract…
A: Instructions that subtract “val4” from “val2”:
Q: Input: 1. The first line of input contains a single integer Q (1sQs10), which is the number of…
A: According to the question below the Solution: Output:
Q: Please Answer Number 5 to 7 as they are all connected. 5. Write an algorithm to convert temperature…
A: The answer is given in the below step
Q: Q. ____________ is the processes that run the screen and wait for the input from the user.
A: This question is related to Processes in Linux.
Q: Question The system keeps track of available amount of flour to make cakes. It starts with inputting…
A: We need to write a Java program for the given scenario.
Q: 2. [Multiple Choice] A script "iotrace" has been written. Here's what the desired output looks like:…
A: input() function is used to take user input . fprintf is used to display message on screen in…
Q: Python Algorithms Part 1 – Binary SearchLet's play a little game to give you an idea of how…
A: intro: Let's play a little game to give you an idea of how different algorithms for the same problem…
Q: Make an algorithm that reads an undetermined amount of numbers positive. Calculate the number of…
A: Required: Make an algorithm that reads an undetermined amount of numbers positive. Calculate the…
Q: C++ program >> Make a calculator program that can do add, subtract, multiply, divide, and square…
A: #include<iostream>#include<stdio.h>#include<conio.h>#include<math.h>#include…
Q: wo numbers are input through the keyboard into two locations C and D. Write an algorithm to…
A: Define header file <stdio.h> for io operations. Define main function. Define int variables C…
Q: 1. Calculating the monthly payment. (Note: The following instruction is from…
A: We need to read in values of n,B r and compute the value of A(monthly pay) as per given description.
Q: MENU MENU MENU (A) - addition IS] - subtraction [M] - multiplication [D] - division IX] - exit (A]…
A: Below is the working program for calculator with given conditions- 1. all variables declared are int…
Q: (IN C LANGUAGE) Cumulative Addition: Computer selects a number between 7 and 23 at random. User will…
A: if (sum == num) { if (count == 2 || count == 3 || count == 5) {…
Q: A palindromic number (also known as a numeral palindrome or a numeric palindrome) is a number (such…
A: Including header files. Define main function. Declaring integer type variables. Prompt the user for…
Q: Write a psuedocode algorithm that will calculate the cost of a product given the quantity and unit…
A: The required psuedocode is given below: Start INPUT Quantity INPUT UnitPrice COMPUTE:…
Q: nlist the four (4) common algorithm usually implemented.
A: The replacement algorithms that are used in the case of a set-associative cache system basically…
Q: A student took four quizzes in a term and would like to compute their average. He also would like to…
A: Let's first understand what is a pseudocode: Pseudocode is a plain language just like English which…
Q: Please design an algorithm to detect the fake coin
A: => Fake coin problem, we have N number of coins all of equal weight, out of them, one is fake and…
Q: - Walk 2 - Speak 3 - Hop 4 - Show Distance 5 - Show Number of Words Spoken
A: Given below is the implementation of the above question, since no definition of Option 5 was given,…
Q: . Construct "Guess the Number Game" using LCD display, light dependant resistor (LDR), potentiometer…
A: IT is defined as a liquid crystal display or LCD draws its definition from its name itself. It is a…
Q: Using any Python app. Make a program that asks the user to enter the marks (scores) of a student in…
A: Below given program to check whether a student is pass or fail is computed in a Spyder application.…
Q: 35- Each step of an algorithm must be exact, an algorithm must be exactly and clearly described. * O…
A: Answer 1st Option - True Algorithm is a step-by-step set of instructions. It should be clearly…
Step by step
Solved in 2 steps with 1 images
- Searching - a user should be able to search by ID or by item name create only one menu item for searching a user should be able to enter the name of the item using any case, (for example, sTRolleR) you may wish to store items in all lower/upper case to expedite the search write one search function that can search by ID and name and goes through the array of structs/objects only once show the entire record if found or an appropriate message if not Sorting - sort by any field write one function to sort by any field using a parallel array of pointers use Bubble Sort is not the most effective but the easiest to modify. do not copy and paste sort code five times into the same function. sorting using pointers is faster because you have to swap pointers only, which are normally stored in 4 bytes each; it also allows you to preserve the original order of the items If you choose to have a submenu, a submenu must have an option to go back to the previous menu or main menu if a user got…Fix the errors and send the code please // Application allows user to enter a series of words // and displays them in reverse order import java.util.*; public class DebugEight4 { public static void main(String[] args) { Scanner input = new Scanner(System.in); int x = 0, y; String array[] = new String[100]; String entry; final String STOP = XXX; StringBuffer message = new StringBuffer("The words in reverse order are\n"); System.out.println("Enter any word\n" + "Enter + STOP + when you want to stop"); entry = input.next(); while(!(entry.equals(STOP))) { array[x] = entry; ++x; System.out.println("Enter another word\n" + "Enter " + STOP + " when you want to stop"); entry = input.next(); } for(y = x - 1; y > 0; ++y) { message.append(array[y]); message.append("\n"); } System.out.println(message) }Include this code: public static boolean isMatched(String expression) {final String opening = "({["; // opening delimitersfinal String closing = ")}]"; // respective closing delimitersStack<Character> buffer = new LinkedStack<>( ); // Using Textbook ADT, not Java libraryfor (char c : expression.toCharArray( )) {if (opening.indexOf(c) != −1) // this is a left delimiterbuffer.push(c);else if (closing.indexOf(c) != −1) { // this is a right delimiterif (buffer.isEmpty( )) // nothing to match withreturn false;if (closing.indexOf(c) != opening.indexOf(buffer.pop( )))return false; // mismatched delimiter}}return buffer.isEmpty( ); }
- JAVA INTRO The answer last time was incorrect It did not use text files!!!!. Create a program that generates a report that displays a list of students, classes they are enrolled in and the professor who teaches the class. There are 3 files that provide the input data: 1. FinalRoster.txt List of students and professors ( The first value of each row indicates if it is a student or professor; S means a student , P means a professor) Student and Professor have different data Student row: "S",Student Name, StudentID Professor row: "P", Professor Name, Professor ID, Highest Education 2. FinalClassList.txt List of classes and professor who teach them Each row contains the following information: ClassID, ClassName, ID of Professor who teach that class The professor ID in this file matches the Professor ID in FinalRoster.txt. 3. FinalStudentClassList.txt List of classes the students are enrolled in. (StudentID, ClassID) Student ID matches Student ID in FinalRoster.txt and ClassID…import java.util.Scanner ; //This program enables the user enters 10 int between -100 and 100 //then a menu is presented to the user to choose an operation to be //performed on the entered numbers. //operations: add all numbers and display their total //display the average of the numbers //find and display all negative numbers //find and display odd numbers //display all numbers in reverse order //display all 5 multiples public class OPonArrays { public static void main (String [] main) { int SIZE = 10; int [] nums= new int [SIZE]; Scanner KB = new Scanner(System.in); // populate the array for(int i = 0; i < 10; i++) { System.out.println("please enter a number between -100 and 100"); nums[i] = KB.nextInt(); } //display all elments for(int i = 0; i < 10; i++) { System .out.println(nums[i]); } fix the errorC CodeApproved Libraries:<string.h> *not allowed in some questions<math.h><stdlib.h><time.h> (for srand(time(0)) only)
- choiceA - SLNode<Integer> temp = myFront.getSuccessor();myFront.getSuccessor().getSuccessor().getSuccessor().setSuccessor(temp);myFront.setSuccessor(temp.getSuccessor());temp.setSuccessor(null);temp = null; choiceB - SLNode<Integer> temp = myFront.getSuccessor();myFront.getSuccessor().getSuccessor().setSuccessor(temp);myFront.setSuccessor(temp.getSuccessor());temp.setSuccessor(null);temp = null; choiceC- SLNode<Integer> temp = myFront.getSuccessor();myFront.getSuccessor().getSuccessor().getSuccessor().setSuccessor(temp);myFront.getSuccessor().setSuccessor(temp.getSuccessor());temp.setSuccessor(null);temp = null; choiceD- SLNode<Integer> temp = myFront;myFront.getSuccessor().getSuccessor().getSuccessor().setSuccessor(temp);myFront.setSuccessor(temp.getSuccessor());temp.setSuccessor(null);temp = null;A businessman flight landed in Duncwich, England. He has a meeting in some city.Write a program and ask him at which city he want to reach and show him paththrough following searches1. Depth first search2. Depth limited search3. iterative deepening searchNote: Implement Depth first search using recursive method in python languageFor depth limited search, you can limit the level by your own choiceimplement graphical user interface as well#4. Task Programming Language and Technologies▪ C# Programming Language.▪ Visual Studio 2019. Build a method called Encrypt to receive a string and return another string.The method will be a static.Build a method called Decrypt to return original string.The encryption method will be a very simple one: to encrypt add 1 to eachcharacter and to decrypt subtract 1 to each character.Note: we do not need to create any object of type Encrypter..
- JAVA CODE THANK YOU 2. Binary Search by CodeChum Admin Searching is one very important Computer Science task. When you have a list, searching is natural. You would want to search for an item in the list. If the list is not sorted, there is no way to it but do a linear search - check each element until the item is found or until there are no elements left to inspect. But when the list is sorted, searching becomes way faster! Think of the dictionary; the actual printed dictionary. The words there are sorted from A-Z. And searching for what soliluquy means you should not start from A and turning the pages one by one until you reach the entries for the letter S. What do you usually do? You open the dictionary right smack in the middle and see if you are in the letter S. If you are short and are brought to a letter before S, you try to estimate and open a page to the right of where you are currently. If you went beyond S, you try to open a page before the page you are currently…Cide_Task Programming Language and Advancements▪ C# Programming Language.▪ Visual Studio 2019. Fabricate a strategy called Scramble to get a string and return another string.The technique will be a static.Fabricate a strategy called Unscramble to return unique string.The encryption technique will be an extremely straightforward one: to scramble add 1 to eachcharacter and to unscramble take away 1 to each person.Note: we don't have to make any object of type Encrypter..PYTHON Program Write 8 puzzle solver using DFS and BFS. 1) It must have menu for DFS and BFS search algorithm 2) It must have random.shuffle() to create random initial 8 puzzle state 3) It must print how many nodes and time it took.