In this program write in pseudocode, Thankyou Public Class Test Public Shared Sub Main() Dim i, j as Integer For i=0 To 6 For j=1 To 7-i Console.Write("*") Next Console.WriteLine() Next Console.ReadLine() End Sub End Class
Q: Read two numbers from user input. Then, print the sum of those numbers. Hint -- Copy/paste the follo...
A: logic:- two add two variables use + in between both of them and display the result.
Q: 15.a. Who is responsible for maintaining and repairing lightwave equipment in a dark fiber lease? A....
A: 15.a. Who is responsible for maintaining and repairing lightwave equipment in a dark fiber lease?A. ...
Q: validation. a zero parameter constructor and a fully parameterized constructor for the class. le the...
A: Given Tractors Pretend we work for a company that leases tractors. Let us create a class for tract...
Q: of g(x), c, 5 and k) in the next section. For the following code segments below, count the operation...
A:
Q: s. Create a program that will allow a user to enter 2 numbers using input dialog boxes and calculate...
A: Introduction:
Q: Detail the components of the spheres of security paradigm. The document must have a sufficient quant...
A: Introduction: Information security is primarily concerned with preventing unauthorized access to dat...
Q: 8. Explain the difference between 0; if (x > 0) { s++; } if (y > 0) { s++; } S = and S = 0; if (x > ...
A: In case 1st) s=0; if(x>0){s++}; if(y>0){s++}; The above code when executed the control will go...
Q: What is the Matlab formula to change the amplitude of a wav file?
A: The formula is y=ammod(x,fc,fs)
Q: the valid operand options that can be used with x86 mnemonicsi ING DrC
A: Given :- The x86 mnemonics operand is listed in options in the above given question Need to choose...
Q: Why is it more difficult to recover an interactive transaction than a batch transaction? Is there a ...
A: Answer: An inactive transaction: The term "interactive transaction" refers to software that runs on ...
Q: Using Common Lisp, complete the following programming exercises: Write a function that computes the ...
A: Here is the detailed explanation of the program
Q: 1. What is Maintenance Events in this diagram?
A: Maintenance events in the diagram refers to the car maintenance system in which is shows RepairNum, ...
Q: Consider an array arr = element 12 can be searched from the aray using Binary Search. Also calculate...
A: Binary search is an algorithm which uses divide and conquer algorithm. It divides the array into par...
Q: 1. Design a Windows application named Wallpaper App to calculate the number of single rolls of wallp...
A: Answer :-
Q: Type the program output Input 6 3 target = int(input()) n = int(input()) while n <= target: pr...
A: Type the program output Input 6 3 target = int(input()) n = int(input()) while n <= target: print...
Q: Does Dijkastra's Algorithm work on every kind of graph ?
A: - We need to talk about Dijkastra's algorithm if it works on all types of graphs or not.
Q: Convert the following ER diagram into relational schema. Write the relational schema in SQL.
A: An entity relationship model (or ER model) describes interrelated things of interest in a specific d...
Q: Q1) Gram-Schmidt Algorithm and QR decomposition ii) Write python code (without numpy) to decide if ...
A: “Since you have asked multiple questions, we will solve the first question for you. If you want a...
Q: a) is pipelining b) Given an instruction example for each addressing mode.
A: Let us see the answer:- A) EXPLANATION:- The four phases per instruction allow the PIC to implement ...
Q: What is the catastrophe recovery process's principal objective?
A: Introduction: Catastrophe recovery/ Disaster recovery: Disasters such as fire, flooding, terrorist a...
Q: blems 1. Design a Monte Carlo simulation to estimate the probability of a random walk reaching the t...
A: In Matlab is given below-
Q: y are some connections never purely pinned or purely fixed, site examples of these instances. Note...
A: Lets see the solution.
Q: True or false _______ 9. The ratio 3 : 5 is less than the ratio 2 : 11. _
A: According to the Question below the solution: As per our guidelines we are supposed to answer only...
Q: Fill out the Pascal's triangle below and find at least three interesting properties. And from these ...
A: The Pascal's triangle is a triangular arrangement of numbers that gives the coefficients in the expa...
Q: In PYTHON, write a code that allows the user to input two non-negative number sequences in increasin...
A: the answer is given below:-
Q: QI Convert binary, to the decimal system.? (11101)2 = (????)10 *
A: 1*24+1*23+1*22+0*21+1*20 =16+8+4+0+1 =29
Q: ecution for each line using "call by need" an
A: Draw the run-time stack after the execution for each line using "call by need" and "call by name". A...
Q: Let T be an arbitrary splay tree storing n elements A1, A2, . An, where A1 ≤ A2 ≤ . . . ≤ An. We pe...
A: <script> // javascript code for solving inverse interpolation // Consider a structure // to ke...
Q: REMINDER: - Every recursive function must have one or more base cases, - The general (recursive) cas...
A: The answer given as below:
Q: Given the two binary numbers, 1011000 (base 2) and 1100 (base 2). What is the sum in decimal form
A: As given, we need to find out the sum of given two binary numbers in decimal form. Given binary numb...
Q: What is the difference between a heuristic and an algorithm ?
A: Introduction: Heuristic - It is a technique for determining the best path based on a heuristic value...
Q: Cloud computing is now widely used in many enterprises' information systems. Discuss cloud computing...
A: Find the answer given as below :
Q: Which of the following is not a problem that could be caused by disabling STP in a switched network?...
A: We are going to understand which problem can not arise if we disable STP in a switched network.
Q: Consider the bandwidth of the line is 1.2 Mbps, packet size is 1 KB and round-trip time is 50 msec. ...
A: Ans: The bandwidth of the line = 1.2 Mbps = 1.2 * 106 bits per sec Packet size = 1 KB = 210 * 8 bits...
Q: Task: Given two matrices X and Y, multiply them in parallel to store the result in matrix Z You sho...
A: MPP (massively parallel processing) is the simultaneous execution of a program by several processors...
Q: Theoretical Background: Information Assurance (IA) architecture also known as security architecture ...
A: Answer: Information architecture (IA) is defined as the method of performing the practice of organiz...
Q: Construct a Fibonacci number pattern that involves square roots. Both sides of the equation should b...
A: We can implement this program in any language. Since the language is not mentioned here I will write...
Q: Write a Python program that will ask the user to input a string(containing exactly one word).then yo...
A: Algorithm: Start Read a word 's' Iterate through the loop from i=0 to i=len(s)-1 Inside the loop, p...
Q: The Z-pattern layout is typically used on pages that are not content heavy. Its design mimics the ro...
A: (a). Answer: A Z-Pattern design traces the route the human eye travels when they read left to right,...
Q: number repeats), both terminated by a -1. The size of each sequence can vary (maybe sequence-1 has f...
A: The given problem is related to merging a list of numeric sequences in a new list having an ordered ...
Q: For each pair of functions below, select the correct answer for their relation in terms of orders of...
A: Big-O is a mathematical notation that expresses how efficient an algorithm is in the worst-case situ...
Q: What is tha main function of router?
A: Introduction: Routers are computer networking devices used to transport data packets from one networ...
Q: In general terms, describe the main logical database design techniques and how they relate to each o...
A: In general terms, describe the main logical database design techniques and how they relate to each o...
Q: Provide a description for WaitMsg.
A: Introduction: In Javascript, the waitMsg method is used to show a message while waiting for an event...
Q: Given a 100 x 100 image, (1) write a 3 x 3 geometric transformation matrix that rotates the image by...
A: Given a 100`x 100 image, (I) write a 3 x 3 geometric transformation matrix that rotates the image by...
Q: 1) use the tag selector to select all of the elements with an h1 tag and turn them green 2) use the...
A: As per our company guidelines, we are supposed to answer only the first 3 sub-parts. Kindly repost o...
Q: protect every right when using each other content?
A: To protect the rights of content there are several ways :- 1. getting the content and or code copyri...
Q: public Boolean insertBefore(String newItem, String itemToInsertBefore)
A: class link { Node h; static class Node { String str; Node next; Node(String a) { str= a; } } pub...
Q: Computer Science need a html code that creates 3 boxes 1st box has (first name last name ). second b...
A: Task : Define 3 text fields with labels First name Last Name Class/Section Professors Submit bu...
Q: What is the hash function's purpose? What's more, how does it work?
A: Introduction: A hash function turns a numerical input number into another compressed number value. T...
In this program write in pseudocode, Thankyou
Public Class Test
Public Shared Sub Main()
Dim i, j as Integer
For i=0 To 6
For j=1 To 7-i
Console.Write("*")
Next
Console.WriteLine()
Next
Console.ReadLine()
End Sub
End Class
Step by step
Solved in 2 steps
- Lab 9 C balance the same, y, n, why? class CheckingAct { . . . . private int balance; public void processCheck( int amount ) { int charge; if ( balance < 100000 ) charge = 15; else charge = 0; balance = balance - amount - charge ; // change the local copy of the value in "amount" amount = 0 ; } } public class CheckingTester { public static void main ( String[] args ) { CheckingAct act; int check = 5000; act = new CheckingAct( "123-345-99", "Your Name", 100000 ); System.out.println( "check:" + check ); // prints "5000" // call processCheck with a copy of the value 5000 act.processCheck( check ); System.out.println( "check:" + check ); // prints "5000" --- "check" was not changed } }// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,// then press Enter. You can now see whitespace characters in your code.public class Main {public static void main(String[] args) {}public class Worksheet4_1 {static int counter;int timer;public void main(String[] args) {Worksheet4_1 object1 = new Worksheet4_1();object1.setCoutner (); object1.setTimer (10);System.out.println( "Counter = = " + object1.counter + "ItTimer = " + object1.timer);Worksheet4_1 object2 = new Worksheet4_1();object2.setCoutner(); object2.setTimer (20);System.out.println( "Counter = " + object2.counter + "ItTimer = " + object2.timer);}public Worksheet4_1() {this.timer = 0;this.counter = 0;}public void setCoutner () {this.counter++;}public void resetCounter () {this.counter = 0;}public void setTimer (int second) {this.timer = second;}}} wjhat are the outputs of this code:class Test { private int a; private int b; public Test() { a = 5; b = a - 3; } public int getA() { return a; } public int getB() { return b; } public void multiplyBy1000() { a *= 1000; } public void subtractSeven() { b -= 7; } } Given the following code, what will the output be? Will the code compile and execute? If so, what will be displayed? If there is an error, what is the error? Give the best description you can give. class Main { public static void main(String[] args) { Test m = new Test(); System.out.println("a = " + m.getA() + ", b = " + m.getB()); m.multiplyBy1000(); System.out.println("a = " + m.getA() + ", b = " + m.getB()); m.subtractSeven(); System.out.println("a = " + m.getA() + ", b = " + m.getB()); } }
- Explain this c# in your own wording and also his output??? using System; namespace ConsoleApplication4 { abstract class A { public int i; public abstract void display(); } class B : A { public int j; public int sum; public override void display() { sum = i + j; Console.WriteLine(+i + "\n" + +j); Console.WriteLine("sum is:" + sum); } } class Program { static void Main(string[] args) { A obj = new B(); obj.i = 2; B obj1 = new B(); obj1.j = 10; obj.display(); Console.ReadLine(); } } }Write a Fraction class that works with the FractionMath program above. It should use your Fraction.java file to run.Main Program:public class FractionMath{public static void main(String[] arguments){// create four fractions accountsFraction w = new Fraction();Fraction x = new Fraction(3,4);Fraction y = new Fraction(2,5);Fraction z = new Fraction(6,0);System.out.println("*** Does the toStringMethod work?"); System.out.println("First fraction : " + w); System.out.println("Second fraction : " + x); System.out.println("Third fraction : " + y); System.out.println("Forth fraction : " + z); System.out.println(); // Does the get() method work? System.out.println("*** Does the get() methods work?"); System.out.println("w = " + w.getNumerator() + " over " + w.getDenominator()); System.out.println();// Can we change the values correctly nameSystem.out.println("*** Does the set() methods work?");System.out.println("w fraction Before : " + w); w.setNumerator(22);System.out.println("w fraction After…Write the answer in java and read the question carefully here is the lab 12 code : public class lab12daneshelahi { public static void main (String[]args) { CanadianAddress testAddress = new CanadianAddress (); CanadianAddress SMUAddress = new CanadianAddress ("923 Robie St.", "Halifax", "Nova Scotia", "B3H 3C3"); System.out.println ("The testAddress is created as:"); testAddress.printAddress (); System.out.println (); System.out.println ("The SMUAddress is created as:"); SMUAddress.printAddress (); System.out.println (); System.out.println ("The testAddress is equal to SMUAddress? :( " + testAddress.equalAddress (SMUAddress)); System.out.println (); testAddress.setStreetAddress ("923 Robie St."); testAddress.setCity ("Halifax"); testAddress.setProvince ("Nova Scotia"); testAddress.setPostalCode ("B3H 3C3"); System.out.println ("The testAddress is updated as: :D "); testAddress.printAddress (); System.out.println (); System.out.println ("The…
- I need help write this java code, described in the image below public class Person { private int ageYears; private String lastName; public void setName(String userName) { lastName = userName; } public void setAge(int numYears) { ageYears = numYears; } // Other parts omitted public void printAll() { System.out.print("Name: " + lastName); System.out.print(", Age: " + ageYears); }}// ===== end ===== // ===== Code from file Student.java =====public class Student extends Person { private int idNum; public void setID(int studentId) { idNum = studentId; } public int getID() { return idNum; }}// ===== end ===== // ===== Code from file StudentDerivationFromPerson.java =====public class StudentDerivationFromPerson { public static void main(String[] args) { Student courseStudent = new Student(); /* Your solution goes here */ }}// ===== end =====Please read the instructions crefelly this is a java code programming please solve it. don plagarise or copy from other sources please. Please do what in the question says .There are previous lab codes needed. So, I am providing the codes- Apartment classes from Lab 17 code - public class Apartment extends Building { private int totalUnits; public Apartment (String name, CanadianAddress address, int squareFootage, int totalUnits) { super (name, address, squareFootage); this.totalUnits = totalUnits; } public int getTotalUnits () { return totalUnits; } public void setTotalUnits (int totalUnits) { this.totalUnits = totalUnits; } } CanadianAddress class from Lab 18 code - public class TestCanadianAddresslab18 { public static void main(String[] args) { CanadianAddress testAddress = new CanadianAddress(); CanadianAddress SMUAddress = new CanadianAddress("923 Robie St.", "Halifax", "Nova Scotia", "B3H 3C3"); System.out.println("The testAddress…Read the following second main class. Guess its output. class Test { public static void main(String s[]) throws Exception { TextThread x = new TextThread ("Hello"); TextThread y = new TextThread ("Java"); x.start(); x.join(); y.start(); System.out.println("I am Main thread"); } }
- public class SharedCounter {int counter = 0;public static void main(String [] args) throws InterruptedException{IntCell intCell = new IntCell();//Create incrementer and decrementer objects and pass intCell to the constructor. //Call .start() on both, then .join() on both.//Finally, print the value of intcell: intCell.getVal();} } class IntCell{private int val = 0;synchronized void increment() {val++;}synchronized void decrement() {val--;}int getVal() {return this.val;}} class Incrementer extends Thread{//IntCell reference //Set via parameterized constructor //Override the run method with a for loop that runs 10000 times and calls intCell.increment();} class Decrementer extends Thread{//IntCell reference //Set via parameterized constructor //Override the run method with a for loop that runs 10000 times and calls intCell.decrement();}This is a debugging question - The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. Code - // This class determines the logarithm of a number public class DebugTwelve1 { public static void main(String[] args) throws ArithmeticException { double num = -8.8, result. try { if(num <= 0) throw(new ArithmeticException()); result = Math.log(num); System.out.println("Result is " + result); } catch() { System.out.println("Can't take logarithm for value of zero or lower"); } } }Im trying to get the program to out put this information // ===== Code from file Person.java =====public class Person { private int ageYears; private String lastName; public void setName(String userName) { lastName = userName; } public void setAge(int numYears) { ageYears = numYears; } // Other parts omitted public void printAll() { System.out.print("Name: " + lastName); System.out.print(", Age: " + ageYears); }}// ===== end ===== // ===== Code from file Student.java =====public class Student extends Person { private int idNum; public void setID(int studentId) { idNum = studentId; } public int getID() { return idNum; }}// ===== end ===== // ===== Code from file StudentDerivationFromPerson.java =====public class StudentDerivationFromPerson { public static void main(String[] args) { Student courseStudent = new Student(); /* Your solution goes here */ //Person a = new Person();…