The pass numbers for each of the following activities i. object code generation ii. literals added to literal table iii. listing printed iv. addrcss rcsolution of local symbols that occur in a two pass asscmbler respectively are А. 1,2, 1,2 В. 2, 1, 2, 1 С. 2, 1, 1,2 D. 1.2.2.2
Q: Write declarations to declare each variable to have the specified type and initial value: Problem:…
A: Variable declaration: A variable is a name that is the name given to a memory location in computer…
Q: a switch statement that checks origLetter. If 'a' or 'A', print "Alpha". If 'b' or 'B', print…
A: I have provided a detailed code below.
Q: // Step 1: Import the Java Scanner class /** * The Java program inputs the original cost for a sale,…
A:
Q: Exercise 3. Parameter Passing What are the values of y and z at the end of the following block under…
A: Here is the explanation regarding the code:
Q: Which of the following are not true about abstraction? (A It is concealing how something works. B It…
A: Here have to determine correct option for abstraction.
Q: This is a debugging problem I am stuck on - The files provided in the code editor to the right…
A: // Application contains a starting list of three products for sale// The user is prompted for…
Q: What is the output of the following expression? word = 'object oriented' |print word[4:42] O ct…
A: Explanation: There is missing parentheses in given code. Correct code word = 'object oriented'print…
Q: (Important Note: Provide the screen shot of the program (Code) with your name and ID number as a…
A: ANSWER:-
Q: ach line of the text file includes a vehicle make, color, plate number and the date of entry to the…
A: Description: 1- As shared in the screenshot there is no any kind of classes missing. 2- There is…
Q: 9- support imposed loading * O foundation O structure O envoromental control 10-There are many types…
A: Structure support imposed loading. Imposed loads are temporary, changeable or dynamic loads acting…
Q: ex5-2.c Exercise 5.2 1 #define TRUE 1 #define FALSE O Collapse 3 short IsHoopy (int x) { short…
A: The output of the given program will be: 1 1 ping! pong!
Q: a. Extend the definition of the class newString as follows:i. Overload the operators + and += to…
A: Programming language is missing in the question. So we will answer this program in C++ language. If…
Q: Trace through the following code by sight (not putting it into a program). What would be displayed…
A: In this question, A piece of code is given of C# That code follows the recursion Given: private int…
Q: 1.1.2: Output variable value. АCTIVITY 283902.1889792.qx3zay7 Jump to level 1 Write a statement that…
A: import java.util.Scanner;public class InputExample{ public static void main(String args[]) {…
Q: T/F 4. The assertion is a legal stumbling block.
A: Given that, The assertion is a legal stumbling block.
Q: QUESTION 4 Answer based on the following code: import java.util.Scanner; public class Football {…
A: 1. Football.team statement: ⦁ We should enter the value for the 1st printf statement.⦁ The value…
Q: (a) Suppose Circle is a class. Now draw the memory allocation of the following four statements.…
A: Here, a Circle object with the name c1 is declared. Then, c1 is transferred to another circle (c2)…
Q: 10. A operator increase a value stored in a number variable by 1. 11. Write the symbol of logical…
A: pls find the answers below.
Q: Basic if-else expression. Jump to level 1 Write an expression that will cause the following code…
A: Solution: Algorithm Step 1: Input age from the user. Step 2: If the age is less than or equal to…
Q: 3. Find the mistake in the following syntax: int x-10; printf("The value of x = %d",x) Mistake:
A: The printf() is a library function to send formatted output to the screen. Note: As per our…
Q: Language: C++ Use the previously given files: Critter.h, Critter.cpp and testcritter. Expand…
A: Given:
Q: PROVIDE PYTHON SOURCECODE WITH OUTPUT Write a Python program and a C++ program to demonstrate…
A: Write a python and a C++ program to demonstrate multiple inheritance by doing the following tasks:…
Q: 9.Why do we use comments? a. For later use to understand the working of the program b. It is an…
A: the answer to the above mention question is given below ,here we have given the question about the…
Q: computer science -What does it signify when a module's export is opaque?
A: Introduction: The term "invisible/opaque export from module" refers to the process of exporting the…
Q: Translate the following boolean assignment X:= y >z into intermediate code assuming Ex, Nx, and Cx…
A: Your solution is below please check CJUMP(GT, TEMP(y), TEMP(z), L1, L2) LABEL(L1) MOVE(TEMP(x),…
Q: Q5. a) Write a java program to demonstrate the use of mutable objects to find the Perimeter of a…
A: class Rectangle { // property of rectangle class int length,breadth; //Constructor…
Q: Problem 1. Create a program Class and object where a Class is a Animal, with a method of dogBarking.…
A: The method of dogBarking is written using set and get commands. class Animal { private String…
Q: Implicit declarations are not good for reliability and writability because misspelled identifier…
A: In Fortron Language, Implicit declarations are not good for reliability and writability because…
Q: 1. A destructor function is called automatically when the object goes out of scope: I. the function…
A: Note: According to guidelines we are allowed to answer the first three questions please repost the…
Q: Write the program below to familiarize with the conventional syntax and formatting of…
A: 1) Below is program that defines Dog class, save it in dogs.py 2) Here are the user defined…
Q: Write C++ program, two object of that type (Sub1 and sub2) with three members (A, B, C) to calculate…
A: You can use an array to store all the values of A, B, C of two objects
Q: ation error. 2. Determine the output if that statement is removed. class A { public void test() {…
A: The statement that causes the compilation error. Determine the output if that statement is…
Q: //in c# // I am having problem with my regex fitting the requirments using System; using…
A: //in c# // I am having problem with my regex fitting the requirments using System;using…
Q: 1- Write C++ program to create class name ticket enter the name of person, ticket price, movie name.…
A: Answer: I have done code and also I have attached code and code screenshot as well as output
Q: 1. Design a class, CipherDriver, that uses a repeating key to encode and decode a message read from…
A: import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.ArrayDeque;import…
Q: Which of the following are true about abstraction? (A It is hiding the internal implementation of…
A: Abstraction: Abstraction is a concept of oop( object oriented programming ). It show only…
Q: The result of the following lines: const int myNumber = 10; myNumber = 13;…
A: The given C# code has: One constant variable "myNumber" which initializes as 10. The value of…
Q: (in python 3) Take the username and password from a user and check the validity of the password…
A: 1. Take username and password as input from user 2. Check if password contains username, if yes…
Q: Chapters Covered: • Chapters 1, 2, and 3 Concepts tested in this project • To work with cout and cin…
A: Het there, First I am providing you the required code in C++ for the above stated question. Code:…
Q: this needs to be corrected The file provided in the code editor to the right contains syntax…
A: Required: this needs to be corrected The file provided in the code editor to the right contains…
Q: Consider the given program, find if there is an error, also write the output
A: The following program contains error: should include proper header file give only one specific…
Q: Using any of the iteration structure, write a class that would display the following numbers…
A: import java.util.*;import java.lang.*;import java.io.*; class Codechef{ public static void main…
Q: Develop a C++ code to make a class named Library whose attributes include total books, and total…
A: shallow copy: A constructor is the same as the name of the class. The constructor will not return…
Q: This is a debugging problem - The files provided in the code editor to the right contain syntax…
A: import java.util.*; public class Main { public static void main(String args[]) {…
Q: 1. Consider the following statements: DATAENDFLAG is off; ERROR equals 0; and SUM is less than 1024.…
A:
Q: 1. A destructor function is called automatically when the object goes out of scope: I. the function…
A: NOTE: We’ll answer the first question since the exact one wasn’t specified. Please submit a new…
Q: [CLO-5] What is the value of the variable ss after the following code is executed? int x[ 7 ] =…
A: What is value of variables ss after the following code is executed???
Q: Dry run the below programs and explain the reasons of output. If there is any error then correct…
A: Output: Or Note: In the output, there is a space before the string Or and after the string.
Step by step
Solved in 2 steps
- Design and implement an application that maintains the data for a simple social network. Each person in the network should have a profile that contains the person’s name, an image(Optional), current status(Online, offline, busy,...), and a list of friends. Your application should allow a user to join the network, leave the network, create a profile, modify the profile, search for other profiles, and add and remove friends. Reference: Data Structures and Abstractions with Java, Frank M. Carrano, 4th Edition, Pearson, 2015. You can use any data structure you have learned and written so far. DO NOT USE ANY JAVA to import data structures! (Except arrays) Use your own data structures that you wrote by yourself. Use at least a hash table or a dictionary. You need at least 2 data structures: One for profiles and one for the list of the friends of those profiles. You need to implement CRUD: C= Create: Add profile- Add friends R= Read: Read the information of a profile - Search for other…Based on the below code do the following tasks: EntryScreenshould be adjusted so that the when the option ‘B’ is selected from the main menu, the screen isupdated to show a bus management menu. If the option to add a bus is selected, the screen shoulddisplay options for the type of menu to be shown. The entry screens should allow the subclasses ofclass bus to be populated. Figure 3 provides an example of the expected display. look at image uploaded import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class EntryScreen { public EntryScreen() {} public ArrayList<Planner> managePlanners(Scanner scan,ArrayList<Planner> plans, Ministry mny, ArrayList<Bus> buses) throws NumberFormatException { ReportScreen r = new ReportScreen(); char mchoice = 'c'; String menu=""; while (mchoice!='X') { String menuOptions = "[A]dd/Create planner\n[E]dit/Update planner\n";…Design and implement a calculator using HTML, CSS (with Bootstrap) and JavaScript. The calculator will only run in the browser, and must not depend on any server side scripting (C#). Functional requirements: -A display that shows entry and results -Number buttons on the calculator -Supports resetting the calculator (C function) -Supports clearing the current entry (CE function) -Handles user errors (e.g. pressing "5++5" leads to "5+5", pressing "5+-5 leads to "5-5") -Supports using the result in the next calculation Each element of the calculator needs to be labeled with the following HTML id attribute: Display: display Each number button must have the following IDs: 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine' + button: 'plus' - button: 'minus' * button: 'multiply' / button: 'divide' = button: 'equals' C button: 'reset' CE button: 'clear' IDs are used to find buttons on the page, correctly labeling HTML elements with IDs is important for the tests to…
- Course Title : Operating SystemQuestion : How you will create new user using terminal in Ubuntu? Add screenshots of all steps for new user creation including terminal and Login page in Answer sheet. Every student has to create new user as of his/her arid number for example (18-arid-2929). Note: screenshots are mandatory.Q 1. Create an OpenGL project, name it GLprojectl where you: Define a 600x500 render (drawing) window In the render window, define a coordinate system (-300, 300, -300, 300) Draw the following points and the line segments between them, select a different color for every pair of points and their line segment: а. Р1-(-40, -140), Р2- (100,200) b. P1=(10,270), P2= (200,0) с. Р1- (20,10), Р2- (20,-200) d. P13(0, 0), P2= (250,250)Using C# (Sharp) with Visual studio: Make a class of Book with 5 properties - ISBN, author, title, publisher, copyright date In the main method, create 5 instances of the Book class with different data for each Create a LIST and add each of the 5 objects to the LIST Use a foreach loop to display the ISBN, author, title, publisher, and copyright date in the LIST Create a DICTIONARY and add each of the 5 objects (key should be ISBN) Display author, title, publisher, copyright date for each book Create a SEARCH feature: ask the user to type in an ISBN. If the entry matches an item in your dictionary, display the author, title, publisher, and copyright date. If there are no matches, display "ISBN not found". Hint: use ContainsKey Create a REMOVE feature: ask the user to type in an ISBN to remove a book from the list. If the entry matches an item in your dictionary, remove the item and re-display your list. If there are no matches, display "ISBN not found".
- Computer Science Write a program to design a graphical user Interface using JavaFX without FXML and make a main class and subclasses for a project of your Interest that contains the following features add four buttons for: Add information or add service or add booking..etc Update information, update service, update booking.. etc Delete information, delete service, delete booking..etc Search information, search service, search booking..etc Add a logo at the top of the interface. You Program should follow the class Design Guidelines. Your Program should include Inheritance feature, use Interface, encapsulation. Draw a UML Diagram that represent your project. For example, Add Booking: The system will ask the user to enter the user information (Name, Phone number, Date Booked, service or anything related to your project. Once the Booking is added a message Booking confirmed with name and service, Date Booked will be displayed. The System need to check if the same Phone number…Analyze the following JavaFX program and complete the missing code based on the comments. The Program should show window like this. public class EmployeeInterface extends Application{ @Override public void start(Stage stage) throws Exception { 1- // Create a boreder Pane object 2- // create HBox object 3- // create the two command button objectsSolve this question using java language you have to read the information from a file then print them in a file please read the instructour carefully, also look at the attach image to help you to solve it. pecificationsWhat You Must ImplementYou must define a class named MediaRental that implements the MediaRentalInt interface functionality(index A). You must define classes that support the functionality specified by the interface. The followingspecifications are associated with the project:1. Define a class named MediaRental. Feel free to add any instance variables you understand are needed or anyprivate methods. Do not add any public methods (beyond the ones specified in the MediaRentalInt interface).2. The media rental system keeps track of customers and media (movies ,music albums and games). A customerhas a name, address as string , a plan and two lists. One list represent the media the customer is interested inreceiving and the second one represents the media already received…
- Problem Set 04 April 27, 2022 Problem: GUI programming Which of the following diagrams shows the best model of the hierarchy of graphical user interface objects in a tkinter-based Python application? (In this context, "widget' refers to user interface items like labels, buttons, text fields, drop-down menus, etc.) A root window frame hame B. widget widget widget root window widget widget widget Submit your answer and a few comments about the importance of the hierarchy in a text document. widget root window frameSemantic Distance is the distance between what people want to do and the meaning of an interface element. Select one: O True O FalseSo, one of these statements is correct? It is impossible to display on a single map several layers (data) using different coordinate systems. For GIS purposes, it is allowed for data to include several coordinate systems. A map may display several different layers of data, each with its own set of coordinates. A map's layers may not align correctly if you use several coordinate systems to display them. Those things are not included