49,761 Topics
| |
Hello, my name is V, and I'm a Prolific Java programmer with 4+ years of experience and a solid background in RESTful and JSP development. OddPointer is looking for efficient programming. In recent years, I have built an average of 10+ native Java apps per year. | |
I have read some threads on this warning and I understand what the warning is and there have been suggestion on how to get around the warning, but how do you code it correctly not to get the error? In my class we are studing namespace,typedef, string functions the assignment … | |
Hi! I am not too expert in C++ programming. I created a class (Pig), then I created an object (Jack the Pig). In the function Kill, I call the destructor, but it doesnt't "kill" (destroy) my Jack the Pig, because in the next line, I can feed him. So my … | |
Create a program that displays the result of a sales transaction. The calculation requires three numbers. The first number represents the product price. The second number is the salesperson commission. These two numbers should be added together. The third value represents a customer discount; subtract this third from the result … | |
Hey can someone please tell me how to assign keys to buttons, I tried with a code but it only works once or it only works when I have to press the button on the screen and then use the key but it only works once Can someone please help … | |
I'm making a book system, although I'm stuck. My goal is to let a user input again after the user inputs. ex. User inputs Book 1 then User wants to input another and make it Book 2. Also, I want to let the user return to the main menu if … | |
hello everyone , i have a code for selection sort and i wanna modify it to give me a running time , any help? | |
| |
| I need to do c++ programming without using array and function.please help me.i attach file below. |
> This is the code for reading from a txt file, but creating a code for writing into a txt file that goes along with this reading code is pretty difficult and am looking for any ideas that can help me in implementing this using linked list along with txt … | |
I am writing this program for our activity, but I have Problem at the end line, because whenever I input 'Y' when asked do you want to solve another set, the do repeats but the statement "Do you want to try again is flashed along with the question "Which shape's … | |
i've come across a problem. How do i check if an array has two,or more elements in a sequence. For example,let's say i have an array 1,2,3,6,7,8,4,5 and i want to check if it has numbers 6,7,8 but in that sequence. For example,if it would be 1,2,3,7,6,8,4,5 it would return … | |
A classic example of an object is a playing card.There are numerous games that utilize a deck of 52 playing cards; consider the game called Set instead. The object of the game is to identify “sets” of 3 cards from an array of 12 cards. Each card has fourfeatures: 1.Symbols … | |
Hello, I just wanted to help with my code here's my questions 1. How can I input "computer" in any in any order and case insensitively and still get the correct output? Here are the replacement COMPUTERS.X 1234567890.X 2. If I input other letters that is not included in the … | |
Hi~ I've been stuck with this exercise for quite a few days. It's in a book I'm currently self-studying, C++ primer plus. It is as follow: [CODE]/* Write a program that uses an array of char and a loop to read one word at a time until the word done … | |
Hello, I tried to make game where you can determine the winner by inputting their scores i'm just confuse how to count the wins of one team here's my code: #include <iostream> #include <string.h> using namespace std; main(){ int p1, p2, a=4; int wincount=0; string team1, team2; for (int j=0; … | |
Write a C++ Program (in OOP) to calculate and display an employee's raise and new salary. The program details are the following: A class called SalaryRaise with private data members for the current salary, rate of raise, the raise amount and the calculated new salary. A public function get_inputItems(), task … | |
Write a C++ program (in OOP) with the following details: A class called BankAccount, that will act as a bank account. It contains the following: Two private data members: account_number (int) and account_balance (double), which maintains the current account balance. A Public functions account_credit(), task is to add the given … | |
#include<iostream> #include<string> #include<vector> #include<algorithm> using namespace std; struct staffTWB { string staffName; int staffProf; }; void printEntry(staffTWB); int main() { string staffName; int staffProf; while (staffName != "done") { cout << "Please enter a staff name(done to leave the program):" << endl; getline(cin, staffName, '\n'); if (staffName == "done") { … | |
Please can some one help me with this program using functions, arrays, if statement and loops to develop a c++ source files that will be called CLASS LIST . this program should allow user to enter their names, student identification number and exam marks, a function should be created to … | |
> import numpy as np > import scipy.io.wavfile > from scikits.talkbox.features import mfcc > sr1,x1=scipy.io.wavfile.read("filename.wav") > ceps1,mspec1,spec1=mfcc(x1) I can obtain MFCC values as above. Now, I have 100 songs with 2 different music genres(electronic,jazz). And, I want to create a dataset with using these songs. I suppose I will use … | |
#include<iostream> using namespace std; int main() { char LtrGrade; cout <<"Enter a letter grade: "; cin>> LtrGrade; switch (LtrGrade) { case "a": case "A": cout<<"\nExcellent"; break; case "b": case "B": cout<<"\nSuperior"; break; case "c": case "C": cout<<"\nAverage"; break; case "d": case "D": cout<<"\nPoor"; break; case "e": case "E": cout<<"\nTry Again"; … | |
Hello! I’m first year at the university and I’m studying programming. I studying C++. I need to do the Minesweeper game but I don't know how to write the code and what it means. I need someone who can write the program and explain it to me. | |
Write a C++ program that asks the user to enter the number of rooms in a house. For each room, the user must be prompted to enter the following details of each room to be stored as attributes of the class Room. • width length colour Declare 'name' as a … | |
i have to write to the output Write to the output the sequence of division remainders of these numbers over a small integer but sorted in the non-decreasing order.i wrote a code for remainder but i cant write for them to sort. Here is the code: #include <iostream> using namespace … | |
I need learn more about processing pixels like alphablend, stretch and more. I did several search without results. Can anyone recommend me any page or book or some math? | |
#include<stdio.h> #includ<conio.h> Int main() { int ch; float F,C,R,K; char chs; printf(“Choose Input Value\n1.F\n2.C\n3.R\n4.K\n”); scanf(“%d”,&ch); switch(ch) { Case1: F=input(“Fahrenheit value”); C=(5/9)*(F-32); K=C+273.15; R(9/5)*K; Case2: C=input(“Celsius value”); F=(9/5)*(F-32); K=C+273.15; R=(9/5)*K; Case3: R=input(“Rankine value”); F=R-459.67; C=(5/9)*(F-32); K=C+273.15; Case4: K=input(“Kelvin value”); R=(9/5)*K; F=R-459.67; C=(5/9)*(F-32); default: printf(“Invalid Input”) } fflush(stdin); printf(“Print final value F=%0.3f … | |
The End.