Write a program that asks the user to enter 2 integers of 4 digits and displays the different digits as X and if they are the same. If the user enters a number which is not of four digits, then a convenient message is displayed, For example if the user enters 1234 1432 Then the output should be: "X*X
Q: 18.a. What's the transceiver optical budget in a 100Base-FX Ethernet network? A. –20 dBm B. 11 dB C....
A: Defined the transceiver optical budget in a 100Base-FX Ethernet network and cable links span in the ...
Q: programming Question to find the most probable speed from the velocitie ich are entered by the user....
A: Lets see the solution.
Q: C++ programming Question. Try to find the average speed from the velocities of ten particles(in m/s)...
A: Distance travelled over time is used to calculate speed. Distance/Time = Speed So far, the examples ...
Q: Why do we utilise MATLAB to solve difficulties in Computational Geometry?
A: Given :- Why do we utilise MATLAB to solve difficulties in Computational Geometry
Q: Complete the below function in Java String method(String str, String x, int y ){ lladds the x string...
A: Hi there, please find your solution below, I hope you would find my solution useful and helpful. Tha...
Q: The function f(n)= 1000 n2+ n3 + 1 is O(1) O(log n) d. O(n log n) а. О(n) Ос. c. O(n³ ) Ob. O b. O(n...
A: The time complexity of the given function i.e. 1000 n2 +n3 +1 is O(n3) i.e. option e.
Q: When it comes to information systems (IS), what exactly are the duties of the technology office of a...
A: Please refer below image for duties of technology office of a company's IS department:
Q: /** * A Java application to input the name and price of * a product, and a discount percentage, then...
A: import java.util.Scanner; //Step 1 //Step 2 you can write your name//Java version 8 public class Ma...
Q: QI Write program in fortran to find the maximum number of (x,y,z)?
A: Algorithm :- 1. Start program 2. Initialize the three number 3. If X>Y&X>Z 4. Print X is t...
Q: Each year, almost 20,000 of children are rushed to the hospital with injuries related to playground ...
A: Safety of children in the community playgrounds is an important issue.
Q: Determine Base period=88 days Duty=320 ha/cumec
A: Here, i have to determine delta using base period and duty.
Q: Which of the following functions is O(n5y? O n5.78 11 n2 15 n°n None of the cases O n4+ 412 n5 + 101...
A: For BigOh, we must consider highest order of given functionlets check highest order of each options ...
Q: 1. Consider the following P = {P1, P2, P3, P4, P5) R = (R1, R2, R3, R4} E = (P3→R1, P2→R2, R4>P4, R2...
A: (a)
Q: Question: - Salesforce Please explain how we can grant specific permissions to different profiles fo...
A: In order to give consent to users, we may use a variety of popular security features.1.) Permission ...
Q: Write a Java program to calculate the RMS velocity of oxygen molecule at 27deg C.
A: // Java program to calculate // Root Mean Square class GFG { // Function that Calculate Roo...
Q: Complete the below function in Java String method(String str, String x , int y ){ lladds the x strin...
A: substring() method in Java extract a substring from the given string by using the index value passed...
Q: Load the data into a pandas dataframe named data_firstname_df2 where first name is you name. 2. Repl...
A: Here is the code: from sklearn.datasets import load_breast_cancer # 1. Load the data into a pandas ...
Q: Write a publie statie method that takes a 2-dim array of floats and returns the t.re the row that ha...
A:
Q: 1.a. The data transmission rate in one direction over a BLSR ring network is _______ its OC-n line r...
A: Defined the given statements
Q: Fix the code Make it look like the expect
A: After fixing the code , I have provided JAVA CODE along with CODE SCREENSHOT and also prov...
Q: If you were reverse engineering NTDLL.DLL, why would you look for binaries that use it?
A: If you were reverse engineering NTDLL.DLL, why would you look for binaries that use it?
Q: "Simon Says" is a memory game where "Simon" outputs a sequence of 10 characters (R, G, B, Y) and the...
A: Simon Says is a memory game where Simon outputs a sequence of 10 characters (R, G, B, Y) and the use...
Q: Give five (5) words which can explain the concept “PREPAREDNES” and design your own concept web. Aft...
A: Catastrophe preparations: Finding, measuring, and managing associated with disasters. If you're buil...
Q: exploring, analyzing, focusing, and implementing a future is one that departs from seat-of-the-pants...
A: exploring, analyzing, focusing, and implementing a future is one that departs from seat-of-the-pants...
Q: It is possible to boot from a CD/DVD, but (choose all that apply): It is a time-consuming proc...
A: Booting is a process, in which, the system runs on the software or the operating system which is ins...
Q: 00000000 : 0: lea 0x4(%esp),%ecx 4: and $0xfffffff0,%esp 7: pushl -0x4(%ecx) ...
A: Here is the solution:-
Q: Project 1: Caesar Cipher Assignment Overview In this assignment, we are going to implement a simple ...
A: project 1: Caesar Cipher Assignment Overview In this assignment, we are going to implement a simple ...
Q: In Java please,
A: CODE- import java.io.File;import java.io.IOException;import java.util.Scanner; public class CheckAva...
Q: The bubble sort algorithm is used to sort the following sequence of integers: 3 32 19 41 27 20 7 •...
A: Given :- The bubble sort algorithm is used to sort the following sequence ofintegers: 3 32 19 41 27 ...
Q: Which of the following provides the most accurate definition of XBRL? O A universal, worldwide stand...
A: XBRL also known as Extensible Business Reporting Language. XBRL : It is a language used for electron...
Q: Write a program in python that asks the user for the hexcode of a color and then displays a turtle t...
A: I was able to get a python program to convert preset colour hex codes (example #B4FBB8), however fro...
Q: Multiple responses required. Please 'fill in the blank'. Explanations are appreciated
A: 5a Here, the opcode is the first 4 bits - 0010, which stands for Load Register PC Relative. Thus, n...
Q: In which gateways do port mirroring and deep packet inspection are used?
A: The ATA Gateway is constructed on a dedicated server that monitors traffic from domain controllers t...
Q: Encode õevõpov with Huffman coding. a. List all symbols and their probabilities b. Find the Huffman ...
A: The Answer is given below
Q: What are the advantages of using a compiled language over an interpreted language? In which circumst...
A: Compilers translate compiled languages into machine code that can be executed by the processor. As a...
Q: Encode õevõpov with Huffman coding. a. List all symbols and their probabilities b. Find the Huffman ...
A: The Answer is given below!!
Q: Write the python program to display the following: Open and read the countrycities.csv file. Count ...
A: import csv import sys f = open('countrycities.csv') csvread = csv.reader(f) h = [] h= next(csvread) ...
Q: QI Write program in fortran to find the maximum number of (x,y,z)?
A: code is given below
Q: 12.a. How does a two-fiber BLSR network stay online if the work fiber in a span fails? A. Span switc...
A: 12.a. How does a two-fiber BLSR network stay online if the work fiber in a span fails?A. Span switch...
Q: Q6:FIND SUMMATION FOR ODD NEGATIVE AND SUMMATION FOR EVEN NEGATIVE (APPEAR ODD N. & EVEN P. NUMBER I...
A: Lets see the solution.
Q: Convert Infix To Prefix Notation In c++. Please show the code.
A: The code and the output for the above given convert infix to postfix notation in c++ programing lang...
Q: 16.a. How far can workstations be separated in an FDDI network? A. 100 km B. 50 km C. 15 km D. 2 km ...
A: 16 .a) FDDI supports a variety of fiber optic cable types, including the 62.5/125 micron multimod...
Q: With each program provide its code and output by using Mars4_5 (MIPS): 1. Printing a Text/String(e.g...
A: According to company guidelines we are restricted to answer first 3 parts of an interlinked question...
Q: Find out a context free grammar for the language of strings over the alphabet { 0,1} such that the n...
A: S → TS|1T|1S T → TT|0T1|1T0|E(Empty string)
Q: Create two classes: Rectangle and Cuboid. Cuboid is a child class for rectangle Rectangle - length: ...
A:
Q: Don atung ma age te nggeshat t n e w ng The moshes TM annet annethe The t at te ut ady te te gee man...
A: Ans:- option 1
Q: What are the repercussions of humans introducing bias into machine learning? What human decisions af...
A: introduction: Artificial intelligence (AI), machine learning, and deep learning have become popular ...
Q: for(int 1 = 0; 1 < 5; i++){ for(int j = 0; j < 5; j++){ cout << (i + j) % 2; } cout << endl; }
A: Task : Given the code segment. The task is to find the output of the code.
Q: Write a Java program to calculate the RMS velocity of oxygen molecule at 27deg C.
A: Algorithm: Import Scanner and Math Define a class Define the main method Declare an object of Sca...
Q: lain (not less than 100 words) how Morgan in the article "Experiments versus Models: New Phenomena, ...
A: Given Explain (not less than 100 words) how Morgan in the article "Experiments versus Models: New Ph...
Step by step
Solved in 2 steps with 1 images
- 18. Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing, and planting trees. The cost of mowing is $35.00 per 5,000 square yards, fertilizing is $30.00 per application, and planting a tree is $50.00. Write an algorithm that prompts the user to enter the area of the lawn, the number of fertilizing applications, and the number of trees to be planted. The algorithm then determines the billing amount. (Assume that the user orders all three services.) (9)(Misc. application) a. Write a program to reverse the digits of a positive integer number. For example, if the number 8735 is entered, the number displayed should be 5378. (Hint: Use a do statement and continuously strip off and display the number’s units digit. If the variable numinitially contains the number entered, the units digit is obtained as (num % 10). After a units digit is displayed, dividing the number by 10 sets up the number for the next iteration. Therefore, (873510)is5and(8735/10)is873. The do statement should continue as long as the remaining number is not 0.) b. Run the program written in Exercise 3a and verify the program by using appropriate test data./*random number guessing game with while loopscreate a program (or adapt the guessing game program that's posted in moodlea couple of weeks ago) that asks the user to guess a random number between one and sixteen,and compares their guess with the computer's number.save this program as guessLoops.cppThe program should display one of four messages:if your guess is higher than the computer's number: "Your guess is too high."if your guess is lower than the computer's number: "Your guess is too low."if your guess is the same as the computer's number: "That is correct!"if your guess is less than one or greater than sixteen: "Invalid guess."If it's the last one, invalid guess, prompt the user, by using a loop, to guess again.If your guess is too high or too low, ask the user if they'd like to guess again (if theanswer is 'y' for yes, repeat the statements that asks for a guess.Then, repeat statement on line #6-#9 above.If the answer is 'n' for no (meaning the user doesn't want to guess…
- Hailstone sequence Given a positive integer n, the following rules will always create a sequence that ends with 1, called the hailstone sequence: If n is even, divide it by 2 If n is odd, multiply it by 3 and add 1 (i.e. 3n +1) Continue until n is 1 Write a program that reads an integer as input and prints the hailstone sequence starting with the integer entered. Format the output so that ten integers, each separated by a tab character (\t), are printed per line. The output format can be achieved as follows:System.out.print(n + "\t"); Ex: If the input is: 25 the output is: 25 76 38 19 58 29 88 44 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1 in java Binary-Decimal / Decimal Binary . Between 0 and 255 a number will be decided randomly by computer. Then asks to user 3 times a random digit of binary value of the that number. If user enters wrong number for a digit program will select another random number and ask random times random digit. Every time user enters input will be counted as one hour in that planet. For example: Computer selected number as 163 ( Which is 10100011) What is the digit 2 (question 1/3) :User enter 1 CorrectWhat is the digit 4 (question 2/3) : User enter 0 CorrectWhat is the digit 7 (question 3/3) : User enter 0 CorrectUser finished the quest with 3 input .Hailstone sequence Given a positive integer n, the following rules will always create a sequence that ends with 1, called the hailstone sequence: If n is even, divide it by 2 If n is odd, multiply it by 3 and add 1 (i.e. 3n +1) Continue until n is 1 Write a program that reads an integer as input and prints the hailstone sequence starting with the integer entered. Format the output so that ten integers, each separated by a tab character (\t), are printed per line. The output format can be achieved as follows:System.out.print(n + "\t"); Ex: If the input is: in java
- C language Q4. Write a program that asks the user to enter an integer n, then prints the first n multiple of n. The program should keep asking to enter a number until -1 is entered. (0.5 point) Q5: a. What does the following program print? char c='Z'; for(i=1;i<= 4; i++) { for(j= 1; j<= i; j++) { printf("%c", C--); } printf("\n"); } b. Re-write the above code using while loop. Output: Sample Output: Enter a number: 4 48 12 16 Enter a number: 6 6 12 18 24 30 36 Enter a number: 1 1 Enter a number: -1 End Using while loop: (2x0.5 =1 point)Lab 7 Pre-Lab In Java Write an algorithm that gets student exam scores from the user. Each exam score will be an integer in the range 0 to 100. Input will end when the user enters -1 as the input value. After all scores have been read, display the number of students who took the exam, the minimum score, the maximum score, the average score, and the number of As where an A is a score in the range 90-100. Make sure your average a decimal point. Only count A’s, not other grades. Note that you do not need to do any error checking on the input for this problem. This should be done as a standard sentinel-controlled while loop.Q1/ Write a program that reads from the user the number of students in the class and their grades in one class, the program must find the largest and the lowest grades with the sequence of students and then find the average grade of the class, see the example below: N is the numbers of students in one class X is the grade for each student in the class For example Student # 1 = 89 Student # 2= 60 Student # =80 You must find the largest and the lowest grades with the sequence of the student. The largest grade is 89 the student's number is 1 The lowest grade is 60 the student's number is 2 The average grade of the class is 76.333
- MPI Lab Directions Write an MPI program, countprimes which will count the number of prime numbers in the numbers from 1 to n inclusive where n is a long integer. The value for n which should be set in the program using a constant should be 50,000. Each process will test its share of the cases. Each process should not print out any primes that it finds, but it should keep a running total. Before the process finishes, it should print out its ID number and its count of primes that it found. The master process should end with printing a total for the count of the number of primes and the total amount of time taken to find all the primes. Take a screenshot of the output for running this with 5 processes. Before submission, make sure you clean up the directories so that no miscellaneous files are kept around in the submission. (Grade would be deducted if useless files are found in the homework directories.) Include the source code, screenshot, and the Makefile in the submission. Your…09. FizzBuzz problem:- Write a program which return "fizz" if the number is a multiplier of 3, return "buzz" if its multiplier of 5 and return "fizzbuzz" if the number is divisible by both 3 and 5. If the number is not divisible by either 3 or 5 then it should just return the number itself?.CSCI250L Sample Exam 1 Spring 2020-2021 Question1 (50 pts) Write a program that prompts the user to enter the name, the number of children, and the basic salary of an employee. The program will then: Calculate the bonus: bonus = number of children * $25 Calculate the new salary: new salary Apply a tax of 10% and find the paid salary: paid salary = new salary * (1 – tax) %3D salary + bonus The program will then display all the information needed as shown in the sample run below Sample Run: Enter the name of the employee: Jamal Enter the number of children of the employee: 4 Enter the salary of the employee (in $): 1500 The calculated bonus is $100 for 4 children. The new salary is $1600.0 The paid salary for Jamal is $1440.0