#- 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
- class Artist{StringsArtist(const std::string& name="",int age=0):name_(name),age_(age){}std::string name()const {return name_;}void set_name(const std::string& name){name_=name;}int age()const {return age_;}void set_age(int age){age_=age;}virtual std::string perform(){return std::string("");}private:int age_;std::string name_;};class Singer : public Artist{public:Singer():Artist(){};Singer(const std::string& name,int age,int hits);int hits() const{return hits_;}void set_hits(int hit);std::string perform();int operator+(const Singer& rhs);int changeme(std::string name,int age,int hits);Singer combine(const Singer& rhs);private:int hits_=0;};int FindOldestandMostSuccess(std::vector<Singer> list); Task: Implement the function int Singer::changeme(std::string name,int age,int hits) : This function should check if the values passed by name, age and hits are different than those stored. And if this is the case it should change the values. This should be done by…class Artist{StringsArtist(const std::string& name="",int age=0):name_(name),age_(age){}std::string name()const {return name_;}void set_name(const std::string& name){name_=name;}int age()const {return age_;}void set_age(int age){age_=age;}virtual std::string perform(){return std::string("");}private:int age_;std::string name_;};class Singer : public Artist{public:Singer():Artist(){};Singer(const std::string& name,int age,int hits);int hits() const{return hits_;}void set_hits(int hit);std::string perform();int operator+(const Singer& rhs);int changeme(std::string name,int age,int hits);Singer combine(const Singer& rhs);private:int hits_=0;};int FindOldestandMostSuccess(std::vector<Singer> list); Implement the function Singer Singer::combine(const Singer& rhs):It should create a new Singer object, by calling the constructor with the following values: For name it should pass a combination of be the name of the calling object followed by a '+' and then…Doctor -signature:String -doctorID:int - medicine:Arraylist +Doctor(signature:String,doctorID:int) +PrescribeMedicine():void + salary () +checkRecords():void Medicine Pharmacist -medName:String -startTime:int -dosage :int -endTime:int -date_prescribed:int - medicine:Arraylist +Medicine(medName:String,-dosage :int,date_prescribed:int) +Pharmacist (startTime:int,endTime:int) +checkForConflict():double +confirm_prescription():String +getStartTime():int +getEndTime():int +setStartTime(time:int):void +setEndTime(time1:int).void
- В.width; } { t = B.type; w = { T.type = C.type; T.width = C.width; } T → B C В > int { B.type = integer; B.width 4; } В — foat { B.type = float; B.width = 8; } { C.type = t; C.width = w; } C - [ num] C1 = array(num. value, C1.type); { C.type C.width = num. value x C1. width; }ion C Lons Employee -id: int -name String - dob : Date -staff : ArrayList +setid(int): void +getld() : int +setName(String): void +setDob(Date) : void +getDob(): Date +addStaff(Employee) : void +getStaff() : ArrayListAssign pizzasInStore's first element's numCalories with the value in pizzasInStore's second element's numCalories. #include <stdio.h>#include <string.h> typedef struct Pizza_struct { char pizzaName[75]; int numCalories;} Pizza; int main(void) { Pizza pizzasInStore[2]; scanf("%s", pizzasInStore[0].pizzaName); scanf("%d", &pizzasInStore[0].numCalories); scanf("%s", pizzasInStore[1].pizzaName); scanf("%d", &pizzasInStore[1].numCalories); /* Your code goes here */ printf("A %s slice contains %d calories.\n", pizzasInStore[0].pizzaName, pizzasInStore[0].numCalories); printf("A %s slice contains %d calories.\n", pizzasInStore[1].pizzaName, pizzasInStore[1].numCalories); return 0;} I tried 10 time but I cant solve it so please help me
- Trace through the following program and show the output. Show your work for partial credit. public class Employee { private static int empID = 1111l; private String name , position; double salary; public Employee(String name) { empID ++; this.name 3 пате; } public Employee(Employee obj) { empID = obj.empĪD; пате %3D оbj.naте; position = obj.position; %3D public void empPosition(String empPosition) {position = empPosition;} public void empSalary(double empSalary) { salary = empSalary;} public String toString() { return name + " "+empID + " "+ position +" $"+salary; public void setName(String empName){ name = empName;} public static void main(String args[]) { Employee empOne = new Employee("James Smith"), empTwo; %3D empOne.empPosition("Senior Software Engineer"); етрOпе.етpSalary(1000); System.out.println(empOne); еmpTwo empTwo.empPosition("CEO"); System.out.println(empOne); System.out.println(empTwo); %3D етpОпе empOne ;food_wastage_record.hpp class FoodWastageRecord {public:void SetDate(const std::string &date);void SetMeal(const std::string &meal);void SetFoodName(const std::string &food_name);void SetQuantityInOz(double qty_in_oz);void SetWastageReason(const std::string &wastage_reason);void SetDisposalMechanism(const std::string &disposal_mechanism);void SetCost(double cost); std::string Date() const;std::string Meal() const;std::string FoodName() const;double QuantityInOz() const;std::string WastageReason() const;std::string DisposalMechanism() const;double Cost() const; private:std::string date_;std::string meal_;std::string food_name_;double qty_in_oz_;std::string wastage_reason_;std::string disposal_mechanism_;double cost_;}; food_wastage_record.cpp #include "food_wastage_record.h" void FoodWastageRecord::SetDate(const std::string &date) { date_ = date; }void FoodWastageRecord::SetMeal(const std::string &meal) { meal_ = meal; }void…Calendaritem -month int -day:int Calendaritem(int, int) move(int, int):void +tostring()intring Meeting Birthday -time: String -nameistring +birth year int -participants: ArrayList +Meeting(int, int, String) +addParticipant(String) :void +move(int, int, String):void +Birthday (String, int, int) +toString(): String Based on the UML diagrams shown above, write complete Java class for Birthday, as follows: C) Birthday 1. Define the class and its attributes. Note that Birthday is a subclass of Calendaritem 2. Implement the constructor, which takes 3 parameters for the name, day, and month, and set these values correctly 3. Implement the toString() method to return a string in the following format: name's birthday is on day/month For the toolbar, press ALT F10 (PC) or ALT+FN+F10 (Mac)
- #include <iostream>using namespace std; class TurtleNode { public: TurtleNode(int babiesInit = 0, TurtleNode* nextLoc = nullptr); void InsertAfter(TurtleNode* nodeLoc); TurtleNode* GetNext(); void PrintNodeData(); private: int babiesVal; TurtleNode* nextNodePtr;}; TurtleNode::TurtleNode(int babiesInit, TurtleNode* nextLoc) { this->babiesVal = babiesInit; this->nextNodePtr = nextLoc;} void TurtleNode::InsertAfter(TurtleNode* nodeLoc) { TurtleNode* tmpNext = nullptr; tmpNext = this->nextNodePtr; this->nextNodePtr = nodeLoc; nodeLoc->nextNodePtr = tmpNext;} TurtleNode* TurtleNode::GetNext() { return this->nextNodePtr;} void TurtleNode::PrintNodeData() { cout << this->babiesVal << endl;} int main() { TurtleNode* headObj = nullptr; TurtleNode* firstTurtle = nullptr; TurtleNode* secondTurtle = nullptr; TurtleNode* currTurtle = nullptr; int babies1; int babies2; cin >> babies1; cin…/ CLASS PROVIDED: IntSet (a container class for a set of// int values)//// CONSTANT// static const int MAX_SIZE = ____// IntSet::MAX_SIZE is the highest # of elements an IntSet// can accommodate.// CONSTRUCTOR// IntSet()// Pre: (none)// Post: The invoking IntSet is initialized to an empty// IntSet (i.e., one containing no relevant elements).// CONSTANT MEMBER FUNCTIONS (ACCESSORS)// int size() const// Pre: (none)// Post: Number of elements in the invoking IntSet is returned.// bool isEmpty() const// Pre: (none)// Post: True is returned if the invoking IntSet has no relevant// relevant elements, otherwise false is returned.// bool contains(int anInt) const// Pre: (none)// Post: true is returned if the invoking IntSet has anInt as an// element, otherwise false is returned.// bool isSubsetOf(const IntSet& otherIntSet) const// Pre: (none)// Post: True is returned if all…javascript Define a function, myIncludes, that accepts two parameters: an array and a searchValue. myIncludes should return true if the searchValue is an element in the array. Otherwise, myIncludes should return false. example myIncludes([10, 20, 30], 20); // => true myIncludes(['apples', 'bananas', 'citrus'], 'pears'); // => false