Implement an abstract class Shape with methods: getType() returns a string denoting type of a shape (point, line, polygon ..) area() returns area of the object, or -1 if the shape is concave, intersecting, or does not have an area circumreference() returns circumreference of the object position() returns center coordinates of the object isConvex() returns true if shape is convex distance(Shape s) returns distance to the center of another shape Extend the Object classe into Point, Line, Triangle, and Polygon. Overload the inherited methods. Constructors of these classes take vertices coordinates as an input. I need help to write this …

Member Avatar
Member Avatar
-2 forum 1

Hi guys. I'm about to embark a new journey of learning how to create a android game. So, I don't have to publish it yet. I want to do self-learning. I also want to learn animation along the way. Maybe 2d if 3d is too time-consuming? I've read animation takes a lot of patience and practice which is ok but if you guys think 3d would take too much time, I'd rather try 2d first. Can anyone recommend a free game development platform for Android that is very good for beginners? Preferably, something I can learn animation with as well …

Member Avatar
Member Avatar
+0 forum 2

I am a beginner in C++ coding. Now I am making a little text based game and i need to do a loading screen. I've kind of made one but i want to fill it with this shape ■. What i know is that the ascii code for it is "\u25A0". The code looks like that. #include <iostream> using namespace std; int main () { cout << " LOADING", _sleep(300), cout << " .", _sleep(300), cout << " .", _sleep(300), cout << " ." << endl; cout << " ["; for (int a = 1; a<30; a++) { _sleep(200); cout …

Member Avatar
Member Avatar
+0 forum 1

So I'm trying to create a UI that allows multiple buttons in the same window. All of the are toggles to control GPIO outputs to control relays. I've managed to get them to all work individually in their own files, but when put into the same file is all on or all off. There is only 4 toggles for now, as a demonstration for my boss, but there will be many more on the final product.` Below is the code I've come up with so far. (keep in mind I only started learning Python and coding in general yesterday) I'm …

Member Avatar
Member Avatar
+1 forum 4

I do the class but there are some codes I need to help me please : -Write a number of member functions that do the following: •Calculate the student GPA •Search for the highest mark taken in a particular course •Print the ID, first name, and last name of all the students who have already taken a particular course •Print the course code, course title, course mark, course grade of all courses taken by a particular student -Write a main program that does the following: •Define an array of objects of each one of the above three classes •Assign data …

Member Avatar
Member Avatar
+0 forum 2

java language (ArrayList) The Registrar Office at the university has asked you to help them write a Student Information System (SIS). The system can be used to store information about students, courses, and students' transcripts (courses already taken by a student). · Define a class called StudentType that holds information about a student (student ID, first name, last name, major). · Implement each member function (set, get, print, constructor, etc) in the class. · Define a class called CourseType that holds information about a course (course code, course title, number of credits). · Implement each member function (set, get, print, …

Member Avatar
Member Avatar
+0 forum 3

I need API (Java) to connect to Google Playstore to be able to download apps. Just as [www.apkpure.com](http://www.apkpure.com) and others, but l need to connect from my application. Can somebody help me. Thanks

Member Avatar
Member Avatar
-1 forum 1

i need a code for authentefication user and password with c languge the user and password should be filled first in a .text

Member Avatar
Member Avatar
+0 forum 1

hello, I am currently working on an assignment in my IPT class and I am trying to get questions from my questions box randomly. I am able to do the random function but I do not want them to repeat. My 'questions box' is a dictionary and I have also imported tkinter. Please do help as it is due soon. This is what I am currently doing to get random things: number = random.randint(0,len(Questions_Box)-1 q = Questions_Box[number] random.shuffle(Questions_Box)

Member Avatar
Member Avatar
+0 forum 2

Write a program to read 50 students’ marks, calculate and print the number of students who succeed and the number of students who failed (any marks below 40 should be considered failed).

Member Avatar
Member Avatar
+0 forum 4

Hey guys I decided a while back that I wanted to get into coding. I started a few days ago with sever tutorials ranginf from how the internet works to codeacademy which starts me straight off coding simple Python. This seems all well and good but the problem I have is that there is just so much free content knocking about I dont actually know what would be the best logical place to start. I think the general consensus from what I can work out is to start with javascript but im open to listen to any advice people have. …

Member Avatar
Member Avatar
+1 forum 8

So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a pointer(s) to determine if the hand contains an Ace. If I can understand this one, I'd be able to do the rest with no problems. I was told to do what I did with int decks, int dealt, int the_hand, but I keep getting errors. I've been trying everything I could think of, but no luck. Am I even in the right direction? Also, I read the book, reviewed my …

Member Avatar
Member Avatar
+0 forum 12

Hello All, I am working on a python project that helps pull random names from a list in excel and saves them to a new excel file. The input file shows all of the names of the people who can work on that task. I am able to run the code below and get a random list for each task but I end up with duplicates down my lists. I am trying to create restraints to not allow duplication down the rows also but cant seem to get it to work. import random import xlrd import openpyxl as pyxl inputFilename …

Member Avatar
+0 forum 0

Hey folks, I've just started a CS class, and i need help with this material. I accept any feedback and advice to complete this assessment. [Tasks](https://imgur.com/a/jwHrmhR) What I did so far: Task 1 – Problem Decomposition a) b) PROGRAM <ATM_WITHDRAWAL> 1. DISPLAY 'Enter amount to withdraw’; 2. INPUT amount; 3. READ balance; 4. dispense cash amount; 5. balance = balance – amount; 6. DISPLAY 'Your balance is’, balance; END Task 2 PROGRAM <ATM_WITHDRAWAL> 1. IF card inserted 2. DISPLAY 'Enter amount to withdraw’; 3. INPUT amount; 4. READ balance; 5. dispense cash amount; 6. balance = balance – amount; 7. …

Member Avatar
Member Avatar
+0 forum 2

Hi, I would like to ask a question about returning the column value(s) returned by stored procedure in c#. I have created the code but somehow I encountered an error saying: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Additional information: Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Here is my code public void Display(string pdesc, string psdesc, string psize, string category, ListView lv) { cn.con.Open(); queryString = "execute dbo.sp_RunningBalance @desc, @sdesc, @cat, @size"; …

Member Avatar
Member Avatar
+0 forum 1

I am creating a program in python for a artificial intelligence for chinese checkers, but i cant even get the board to be portrayed! I am using this code: `Code` from tkinter import * root = Tk() board = PhotoImage(file="board.ppm") root.mainloop() I get the error as follows: Traceback (most recent call last): File "/Users/GAMEKNIGHT7/Documents/chineseCheckersAI(genius hour).py", line 3, in <module> board = PhotoImage(file="board.ppm") File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3539, in __init__ Image.__init__(self, 'photo', name, cnf, master, **kw) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3495, in __init__ self.tk.call(('image', 'create', imgtype, name,) + options) _tkinter.TclError: couldn't open "board.ppm": no such file or directory What happened??`

Member Avatar
Member Avatar
+0 forum 1

I am looking to develop my skills as a web developer. I want to find new challenges that can help me do that. Do you know any resources that can help?

Member Avatar
Member Avatar
+0 forum 2

Hi, I've been doing research on a career in coding/programming and now I'm very interested and motivated to learn it. I'm a complete beginner and limited financially at present. So I'm confused as to how to go about it. I love reading a lot and sitting on my laptop, so no problem with studying. I'm the type of person that likes to learn an important big wide subject in stages. To first get a decent background and understanding of it. Then to go deeper into it. Is the following way a good way to go about it? Go through books …

Member Avatar
Member Avatar
+2 forum 4

I am trying to implement a MIPS code that preforms unsigned integer divide but i couldn't figure out how. if D == 0, report an error and terminate. Q = 0 # Q is the quotient, initialized to zero R = 0 # R is the remainder, also initialized to zero n = the number of bits in the numerator N # That is, the number 3710 is 1001012 has 6 bits. # Shift through the bits of N to find the # position of its most significant 1 bit. # Write a separate function to determine “n”. for i …

Member Avatar
Member Avatar
+0 forum 1

Hi I try to upload my picture to local server via FTP Batch file I created script.batch which is contain open 127.0.0.1 Tony 123abc #cd public_html lcd C:\xampp\htdocs lcd XAMPP Shared Folder binary mput C:\Users\Laptop\Desktop\XAMPP Shared Folder\AboutMe.jpg bye I have also another script(upload.batch) which is contain `ftp -i -s:script.bat` When I run upload.batch file it happen nothing? I wonder why? Is there any better code to upload picture to server? I appreciate your help

Member Avatar
Member Avatar
+0 forum 1

I want to create a php function that i can use to get a particular user details and display the info gotten in my ProfileActivity when a user profile is been clicked in my app. so i wrote this php code to get user details from my database but when i run the code nothing is returned in my browser. please what could be causing this? <?php require("config.php"); function getdetails($id) { $array = array(); $q = mysql_query("SELECT * FROM 'users' WHERE 'id'=".$id); while($r = mysql_fetch_assoc($q)) { $array['id'] = $r['id']; $array['name'] = $r['name']; } return $array; } function getId($name) { $q …

Member Avatar
Member Avatar
+0 forum 2

Good Day All i have a ListView that is defined in a Xamarin Form. i want this ListView to be updated with the Data from the DB every 5 seconds. In a Non Mobile environment , we have a Windows Service , which is a long running Service. but now i search i came across a Service. but now i see this is implemented differently on each platform. Most examples i get are examples where one is binding the Control in Android Project. WhatUp if my Data binding is done in Xamarin Form (Standard Class) . 1) Can i kindly …

Member Avatar
+0 forum 0

Hi All, In this program I have these 2 matrices . It will compare each element in each row of matrix[4][4] to 3 . If that value <= 3 then store the characters in the first row of matrix m_c[25][32] in an 2D char array (char clusters[40][40]). For example 3 numbers (0,2,3) of the first row of matrix[4][4] less or equal 3 therefore 3 characters (A,B,D) of first row of matrix m_c[25][32] will be store in the clusters. Similarly 3 numbers (0,3,3) in second row of matrix[4][4] less or equal 3 therefore 3 characters (B,D,F) of first row of matrix …

Member Avatar
Member Avatar
+0 forum 1

I have a table that contains some cubes with servers and active status (see attached image): note: CUBE1 is repeated intentionally. The idea is the same cube is getting synced from the same server 1 as a data source (process_server) onto different target servers (query_server; say server2 is in region A and server 3 is in region B). The way the environment is set up is both servers have to be active/active status (meaning TRUE) except for some additional test cases, i am setting to false sometimes one or the other. I have the following script now calling the cube …

Member Avatar
Member Avatar
+0 forum 1

I am doing a java caesar cypher application and i need your help.I am supposed to Implement a Caesar cipher, both encoding, and decoding. The key is an integer from 1 to 25. This cipher rotates the letters of the alphabet (A to Z). The encoding replaces each letter with the 1st to 25th next letter in the alphabet (wrapping Z to A). So key 2 encrypts "HI" to "JK", but key 20 encrypts "HI" to "BC". Note that all the classes should be encapsulated containing private properties. Use getter methods for all properties you must access outside of the …

Member Avatar
Member Avatar
+0 forum 2

Im not sure what code to use as I am not that experienced with VBA. No matter what i try i cannot get this macros to stop once it reaches a blank cell in E column. Here is the code: Option Explicit Sub PDFTemplate() Dim PDFFldr As FileDialog Set PDFFldr = Application.FileDialog(msoFileDialogFilePicker) With PDFFldr .Title = "Select PDF file to attach" .Filters.Add "PDF Type Files", "*.pdf", 1 If .Show <> -1 Then GoTo NoSelection Sheet1.Range("G53").Value = .SelectedItems(1) End With NoSelection: End Sub Sub SavePDFFolder() Dim PDFFldr As FileDialog Set PDFFldr = Application.FileDialog(msoFileDialogFolderPicker) With PDFFldr .Title = "Select a Folder" If …

Member Avatar
Member Avatar
+0 forum 1

This is a program that ask input from the user about the characteristics of a gemstone then prints to the screen. Things like color, price and name. I have written it to an extend where the user enters all this and prints them out. Am now stuck where I should loop and enable the user to enter any number of gemstones. Like if he/she enters 3 gemstones then it should loop and allow the user to enter the characteristics of the 3 gemstone types. I would also like to sort the resulting output of gemstone names in alphabetical order. Appreciated …

Member Avatar
Member Avatar
+0 forum 2

public class Gradesv2 { public static void main(String[ ] args) { //local variables int numTests = 0; //counts number of tests int testgGrades = 0; //individual test grade int totalPoints = 0; //total points for all test double average = 0.0; //average grade int test1 = 95; int test2 = 73; int test3 = 91; int test4 = 82; System.out.println(""); System.out.println("Test # 1 Test Grade: " + test1 + " Total Points: " + test1 + " = " + totalPoints + "Average Score: " + test1 = +); }//end of main method }//end of class

Member Avatar
Member Avatar
+0 forum 6

Hi Guys, I am looking for career advice. I am currently pursuing my associate's degree in computer science here in Texas. And I wanted to know if you guys know how people with associate's degrees get a job. As an international student, I would like one year of work before I transfer to a 4 year university to finish my bachelor's degree in software engineering or computer science. Currently I am taking my basics but I have done some programming in SQL, PHP, Java, Python, C, HTML and CSS. But I took breaks in between my learning so I am …

Member Avatar
Member Avatar
+0 forum 6

Hi Every one, i have a server and a numbers of clients and i have a C# program on that server. My question is how to run that program on these clients without installing the visual studio on the clienets computers????? you very much

Member Avatar
Member Avatar
+0 forum 3

The End.