#- why am i getting an error? I’ll add a picture of the error description
Q: Pound to Kilogram Converter Write a PYTHON program make a *GUI *that asks the user to enter the mass…
A: The answer is given below.
Q: Many of the following lines will generate a JSP compile error. Pick the line number which compiles…
A: The correct answer is "D. line 6" That is My color is <%=color%> Explanation:…
Q: eed help writing the code in Java language. Allow a user to enter any number of double values up to…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Q1) Write a program in Visual Basic to design a scientific calculator 1,2,4,8( = * +) (? %3D
A: Answer is given below .
Q: Using codes snippets briefly explain how the Scanner class can be used to accept data from the…
A: Use of Scanner class for accepting data from keyboard In order to scanner class, the class should…
Q: __________ is a feature of Visual Studio that provides automatic code completion as you write…
A: The Visual Studio is an IDE (Integrated development Environment) developed by the Microsoft. It is…
Q: Write a console application that uses at least five (5) different methods of Math class with…
A: C# Program: using System; // Using the namespace as MathAppnamespace MathApp{ // Using the class…
Q: A software object’s state is stored in ________ and behavior is shown via methods.
A: A software object’s state is stored in ________ and behavior is shown via methods. (a) objects (b)…
Q: Create a C# Form Based program equal to or more challenging than the calculator program. It would…
A: Before starting with the code , declare the variables globally: public Form1() {…
Q: Problem Definition: Create and design a program that will accept employee’s information such as…
A: S:: In this particular program we need to print an ASCII art. For that, we need to install a…
Q: create a Windows application using Visual Studio then create a simple word-guessing game using…
A: Using C# Language Create a simple word-guessing game using ArrayList and StringBuilder.
Q: The Programming Language is C++ Please write comments in each part create a zoo animal placement…
A: #include <iostream> using namespace std;class animal{private: //fist type string Type;…
Q: Fun Practice of Graphic Python Lab1 Modify ccurve.py by changing the background color to yellow, and…
A: Answer: Lab 1) import turtledef cCurve(t, x1, y1, x2, y2, level): def drawLine(x1, y1, x2,…
Q: Write a program in Java that takes an integer value as input from the keyboard and prints a pattern…
A: Firstly you need to take user input for this so for that you can use the scanner class to take the…
Q: create C language tic tac toe game Program requirements: The program should be designed…
A: Tic-tac-toe is a game of two players taking turns marking spaces on the grids with an X or O. The…
Q: Please write a c program where the user will type in a text at the command line and the program will…
A: There are two types of comments in C A comment that starts with a slash asterisk /* and finishes…
Q: ng questions about it: Problem Description: A car dealership allows customer to purchase their new…
A: Java is a class-based, object-oriented programming language and is designed to have as few…
Q: Use GUI in Java to Calculator Design calculator appearance 4 basic operations power operation…
A: Design calculator appearance 4 basic operations power operation cosinus, sinus operations log…
Q: Write a code using Console.Write for visual code studio.
A: Algorithm: Step 1: Write the main method Step 2: Read the 10 numbers using for loop Step 3: Iterate…
Q: There are two main systems for measuring distance, weight and temperature, the Imperial System of…
A: Required: Program to create the following menu and create conversions according to user choice.…
Q: Problem: You are in-charge of building an in-flight media system as part of a special team within…
A: Answer #include<iostream>using namespace std;// Below is the function solving the problem…
Q: Create a program that has the following methods and corresponding usage. AreaCircle - compute…
A: Introduction: In this question, we are asked to write a C# programming to create the two methods :…
Q: Question * *** ***** ******* ***** *** * Output. Seven lines of output as follows: The…
A: You have done a great job here. Here you just have to use the print statements to print the give…
Q: Develop a C# program using Visual Studio that has the following interface: The program must allow…
A: Please give positive ratings for my efforts. Thanks. ANSWER using System; public class funcexer3…
Q: j. Designers generally use ______ colour for the background, and _______ for the text.
A: Question j. Designers generally use ______ colour for the background, and _______ for the text.
Q: make sure your code is in the correct format and please post a screenshot of the code from Python.…
A: Define class Volume. Define function __init__ with parameters self and vol. Initialize vol to 0.…
Q: C# (Sharp): Using visual studio a). Make a math library with 3 methods with the same name…
A: As per the given information, we need to write a c# program that implements method overloading and…
Q: Circle.java:7: error: cannot find symbol double radiusOfCircleProprt = symbol: variable…
A: Code: import java.util.*; class Main { // pi value as constant public static final double Pi =…
Q: Fix all the errors and send the code please // Application looks up home price // for different…
A: After removing error, the resulting Java codes are: import java.util.*;public class DebugEight3{…
Q: Write a console application that uses at least five (5) different methods of Math class. Provide a…
A: code using System;namespace MAthApp{ class MathProgram{ static void Main(string[] args){…
Q: A county collects property taxes on the assessment value of property, which is 70 percent of the…
A: #importing tkinter libraryimport tkinter as tk #function for calculate Assessment Value and Property…
Q: write a code in visual basic or VB.NET that shows the display inside a label object when clikcking…
A: VB.Net: An item is a form of consumer interface detail you create on a Visual Basic form by using…
Q: As you write, the Visual Studio code editor analyzes each statement and notifies you of any syntax…
A: According to your question Visual Studio provides a powerful integrated set of project building and…
Q: DETAILS CHAPMANML6 2.CQ.017. MY NOTES ASK YOUR TEACHER Complete the following sentences. MATLAB…
A: The symbol is . This symbol is embedded into edit/debug window.
Q: Using python: Create a class called Car. The Car class has the following fields: Color Model…
A: Objective: This program implements the car class with three attributes. The class should be…
Q: Write a console application that uses at least five(5) different methods of Math class. Provide a…
A: In C#, Math class It is used present mathematics operation which contains static methods and…
Q: Instructor note: Important Coding Guidelines: Use comments, and whitespaces around operators and…
A: Java Programming is the object oriented programming languages. It is case sensitive , high level…
Q: object that controls the output System spaces and newlines between statements is ignored out method…
A: - We have ro do the match columns here.
Q: This is for intro for Java Programming class Use Java Programming and Textpad if possible include…
A: Introduction of program This java calculates the internet bill for three different packages. For…
Q: Object-Oriented Programming Assignment #3 A complex number is a number in the form a + bi, where a…
A: Since no programming language is mentioned, I am using java Code: import…
Q: c# language Create a console program that will perform the following: • Ask the user to enter five…
A: using System;using System.IO;public class ComputeAverageProgram{ public static void Main() {…
Q: What does a professional programmer usually do first to gain an understanding of a problem?
A: GIVEN: What does a professional programmer usually do first to gain an understanding of aproblem?
Q: he atoms of different elements have different numbers of protons, neutrons and electrons. Electrons…
A: C++ code: #include <iostream>using namespace std; //create class atomclass atom {…
Q: True or False Every form in a Visual C# project has a class.
A: Form in C# project: C# is an object-oriented programming language. A class structure is followed by…
Q: You are assigned three tasks for this weekend, first you have to develop a script in F95 programming…
A: refer step 2
Q: public class DiscountPrice public static void main(String[] args) { // Step 3: Create a Scanner…
A: import java.util.Scanner; public class DiscountPrice { public static void main(String[] args) {…
Q: Visual Basic programming language Write VB.NET project which will ask the user for a number. If…
A: PROGRAM CODE: Module Module1 Sub Main() Dim num As Integer = 0 Dim result As…
Q: Create Tic Tac Toe in C language The program should be designed according to classical 3x3…
A: The below program shows how how to Play Tic Tac Toe in Programming Language
Q: Retype the statements, correcting the syntax error in each print statement. print('Predictions are…
A: There are three incorrect print statements: 1. print('Predictions are hard.") Here the statement…
Step by step
Solved in 2 steps
- JAVASCRIPT addButtonListeners a. Selects all buttons nested inside the main element b. If buttons exist: c. Loop through the NodeList of buttons d. Gets the postId from button.dataset.postId e. Adds a click event listener to each button (reference addEventListener) f. The listener calls an anonymous function (see cheatsheet) g. Inside the anonymous function: the function toggleComments is called with the event and postId as parameters h. Return the button elements which were selected i. You may want to define an empty toggleComments function for now. Not all tests will pass for addButtonListeners until toggleComments exists. I recommend waiting on the logic inside the toggleComments function until we get there. */ function addButtonListeners(){ }Which depicts a has-a relationship? classStudent{stringname;intage;intgrade;};classTeacher{stringname;intexperience;stringforGrades;};classSchool{vector<Teacher>teachers;}; Group of answer choices: Student-Grade Teacher-Student School-Teacher School-Studentpublic List<String> getLikes(String user) This will take a String representing a user (like “Mike”) and return a unique List containing all of the users that have liked the user “Mike.” public List<String> getLikedBy(String user) This will take a String representing a user (like “Tony”) and return a unique List containing each user that “Tony” has liked. create a Main to test your work. import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException;import java.util.ArrayList;import java.util.Arrays;import java.util.HashMap;import java.util.HashSet;import java.util.List;import java.util.Map;import java.util.Set; public class FacebookLikeManager { public List<String> facebookMap; private Set<String> likesSets; public FacebookLikeManager() { facebookMap = new ArrayList<>(); likesSets = new HashSet<>(Arrays.asList("Mike","Kristen","Bill","Sara")); } public void buildMap(String filePath) {…
- JAVA – color: String – make: String – model: String – msrp: double + Car() + Car(color: String, make: String, model: String, msrp: double) + getColor() : String + setColor(color : String ) : void + getMake() : String + setMake(make: String ) : void + getModel() : String + setModel(model: String ) : void + getMsrp () : double + setMsrp(msrp: double) : void + toString(): String The Car class will have four attributes/instance variables/fields and 11 methods. CarDealership Class The CarDealership class will simulate a real life automotive dealership. This class will create 3 Car objects and store them in an array named Lot. The class will then display all of the information pertaining to each car (color, make, model, etc.) to the User and allow the User to select one to purchase. Once the User selects a car to purchase, the Car object should be removed from the array (Lot) and another Car object should be put in its place.//6. addButtonListeners //a. Selects all buttons nested inside the main element //b. If buttons exist: //c. Loop through the NodeList of buttons //d. Gets the postId from button.dataset.postId //e. Adds a click event listener to each button (reference addEventListener) //f. The listener calls an anonymous function (see cheatsheet) //g. Inside the anonymous function: the function toggleComments is called with the //event and postId as parameters //h. Return the button elements which were selected //i. You may want to define an empty toggleComments function for now. Not all tests //will pass for addButtonListeners until toggleComments exists. I recommend //waiting on the logic inside the toggleComments function until we get there.For any element in keysList with a value smaller than 40, print the corresponding value in itemsList, followed by a comma (no spaces). Ex: If keysList = {32, 105, 101, 35} and itemsList = {10, 20, 30, 40}, print: 10,40, #include <iostream>#include <string.h>using namespace std; int main() { const int SIZE_LIST = 4; int keysList[SIZE_LIST]; int itemsList[SIZE_LIST]; int i; cin >> keysList[0]; cin >> keysList[1]; cin >> keysList[2]; cin >> keysList[3]; cin >> itemsList[0]; cin >> itemsList[1]; cin >> itemsList[2]; cin >> itemsList[3]; /* Your code goes here */ cout << endl; return 0;}
- JavaScript //6. addButtonListeners //a. Selects all buttons nested inside the main element //b. If buttons exist: //c. Loop through the NodeList of buttons //d. Gets the postId from button.dataset.postId //e. Adds a click event listener to each button (reference addEventListener) //f. The listener calls an anonymous function (see cheatsheet) //g. Inside the anonymous function: the function toggleComments is called with the //event and postId as parameters //h. Return the button elements which were selected //i. You may want to define an empty toggleComments function for now. Not all tests //will pass for addButtonListeners until toggleComments exists. I recommend //waiting on the logic inside the toggleComments function until we get there.#include <bits/stdc++.h>#include<unordered_map>#include <string> using namespace std; struct Student{string firstName;string lastName;string studentId;double gpa;}; class MyClass{public:unordered_map<string, int>classHoursInfo;vector<Student> students;unordered_map<string, int> creditValue = {{"A", 4}, {"B", 3}, {"C", 2}, {"D", 1}, {"F", 0}}; void readStudentData(string filepath){cout << "reading student data \n";ifstream inpStream(filepath);string text;string tmp[4];while (getline (inpStream, text)) {string str = "", prevKey = ""; int j= 0;unordered_map<string, int> curStudentClassInfo;for(int i=0; i<text.length(); i++){if(isspace(text[i])){if(j>3){if(prevKey.length()==0){curStudentClassInfo[str] = 0;prevKey = str;str.clear();}else{curStudentClassInfo[prevKey] = creditValue[str];prevKey = "";str.clear();}}else{tmp[j++] = str;str.clear();}}else{str = str+text[i];}}if(str.length() != 0){curStudentClassInfo[prevKey] =…The xxx_Student class:– Name - the name consists of the First and Last name separated by a space.– Student Id – a whole number automatically assigned in the student class– Student id numbers start at 100. The numbers are assigned using a static variable in the Student class• Include all instance variables• Getters and setters for instance variables• A static variable used to assign the student id starting at 100• A toString method which returns a String containing the student name and id in the format below:Student: John Jones ID: 101 The xxx_Course classA Course has the following information (modify your Course class):– A name– An Array of Students which contains an entry for each Student enrolled in the course (allow for up to 10 students)– An integer variable which indicates the number of students currently enrolled in the course. Write the constructor below which does the following:Course (String name)Sets courseName to nameCreates the students array of size 10Sets number of…
- Javascript toggleCommentSection function The function toggleCommentSection should exist. The function toggleCommentSection should return undefined if not passed a parameter. The function toggleCommentSection should return null if passed a parameter that does not match a post ID. The function toggleCommentSection should select and return the correct section element. The function toggleCommentSection should toggle the 'hide' class on the section The following are requirements of the function toggleCommentSection: element.toggleCommentSection a. Receives a postId as the parameter b. Selects the section element with the data-post-id attribute equal to the postId received as a parameter c. Use code to verify the section exists before attempting to access the classList property d. At this point in your code, the section will not exist. You can create one to test if desired. e. Toggles the class 'hide' on the section element f. Return the section element Here is what I have so far:…A shuttle van picks up passengers and drives them to a destination, where they leave the van. Store the names of the boarding passengers. Don't allow boarding if the van is full. Update the odometer when the van drives. Complete the following file: (image) ----------- Use the following files: van.h #ifndef VAN_H #define VAN_H #include <string> #include <vector> using namespace std; /** This class models a shuttle van. */ class Van { public: /** Constructs a van with a given capacity. @param max_passengers the maximum number of passengers that this van can hold */ Van(int max_passengers); /** Boards a passengers up to the capacity of this van. @param name the name of the passenger attempting to board */ void board(string name); /** Drives the van and discharges the passengers. @param distance the distance driven */ void drive(double distance); /** Gets the passengers in this van. @return the number of passengers */ vector<string> get_passengers() const; /** Gets the…Jordan University of Science and TechnologyCS415 Contemporary Programming TechniquesMidterm Exam – Second semester 2021Name: ID: Section:Important note: your code must compile correctly and run without errors.Otherwise your code will get the grade zero.Question 1: Implement a java class called ParsingCustomerRecords that has thefollowing data members and functions:ParsingCustomerRecods- customerRecords: array of strings- result: string variable- recordsNumber: int variable-fileName: string variable+ Constructor(String filename, int recordsNumber)+ void Reader()+ void Executor()+ void showResult()+ String toString()All of the data members are private, and all of the methods are public.Constructor has two parameters which are (1) the file name in which Customers’ recordsare stored, and (2) the number of the records in the file. The constructor functionality is toassign suitable initial values to the fileName and recordsNumber data members. Theconstructor also should instantiate the…