49,761 Topics
| |
Q2. Write a method called countOdds in java that takes an array of 10 integers as a parameter which is given by the user. The method counts the odd numbers in the elements and return the count. please can someone help me with this its java programming | |
#include<iostream> using namespace std; int main() { string weekday; weekday= {"Mon","Tue","Wed", "Thu","Fri"}; cout<<"\n Please select day of booking:"; cin>>weekday; cout<<"\n Day of booking:"; return 0; } | |
Implement in c++ Design an invoice class that has the following fields o Name, Item id , price, quantity Support setter and getter for price and another attribute 2 constructor default one , and another one takes all the parameters Provide 2 function o Get total … | |
i have a program that has one little glitch but i dont know how to fix it. If you can help it would be great. [b][code][/b] int main() { int a, b, c; b=0; c=0; do { cout << "Please enter a positive integer (negative integer to stop):"<< ' '; … | |
Write a program to sort elements of the array in this order. The even indexed elements should be in descending order and odd indexed elements must be in ascending order. | |
i am completly stuck with some problems in programming, talking exactly aboutt linked list and some others can anyone help me? | |
I have an assignment due for my ap computer science principals class and I have no clue on how to do it. I’m willing to pay!!! | |
I would like to learn structured programming | |
May i knw how to write a program that can set goal, record food/drink consumed and record foodcomposition??? | |
Let's have a file containing readings from the measuring apparatus in the range 0 to 100 with an accuracy of 1 - the file contains only space separated integers. The file can be huge (several dozen GB), so it isn't possible to load it in extenso into the computer's memory. … | |
16 years old from egypt software engineer | |
Hey guys, I have been looking around for a while but I can't seem to find any tutorial on how to print the contents of a RichEdit to a printer. Any help would be appreciated and if anyone has any links to a good tutorial please post them. Thanks! TheNewKid | |
Write C++ program for Elgamal Encryption. Give the results after Run the program code. | |
To realize a function of reading from the file in the structure. in c++ Example using namespace std; struct user char name [40]; char first name [40]; char email [50]; char word [50]; float balcony; ; v [100]; The function will train to read the information from the file in … | |
I know more information about this topic | |
how do i skip a char in filestream? i tried the ignore function but that doesnt work in filestream, i also tried using an array[i] and said if(arr[i]=="-") then i++ while outputting but that doesnt work either | |
Mr.Sadik and Ramadan are competing together, both of them wants to become expert on Codeforces first. You will be given two numbers R1 and R2, where R1 is the current rate of Mr.Sadik and R2 is the current rate of Ramadan. Can you determine who will become expert first after … | |
The value of π can be determined by the series equation π =4 * ( 1 −1/3+1/5 −1/ 7+1 /9− 1/ 11+1/13+... ) Write a recursive function that takes an odd number n and uses recursion to approximate the value of π using the given formula including term up through … | |
having problem in coding a small system, which can let user to key in the input and save it into txt before checking the txt file whether the data is duplicated or not | |
Can any one help to write code for this ? recursive function to count total number of consonants in it. Your function should return the count of consonants. | |
program to find the structure of teacher and student lecture in c++ classes | |
do not understand this | |
Write a program that reads a telephone number from a file phnum.txt (available in lab folder) in the form xxx-xxxx. The first three digits represent an area code and the next 4 digits represent the phone number. Your task is to print these numbers into another file (outFile.txt) without any … | |
Hi, how do you read multiple data types in a file and storing it in a linked list. I read the items with no linked list but when I used linked list it doesnt work. I think there is something wrong in my code. Programming language: C++ Thank you struct … | |
![Inked235345364566556546_LI.jpg](https://static.daniweb.com/attachments/4/b5bf788aff340f6e41ee2b6d28f1f5c9.jpg) Sample output: Enter number of guests: 40 40 guests have been invited. Enjoy the party! | |
// complete the following code. // Do not use 2-D array, such as int a[2][3]; #include <iostream> #include <stdlib.h> using namespace std; // implement the functions : add, sub, mult, transpose class Matrix { public: Matrix(int row, int col); int GetData(); Matrix Transpose(); int Display(); Matrix Multiply(Matrix b); Matrix Add(Matrix … | |
Write a program using for loops to produce an R by C rectangle, where R and C are provided by the user. The following are the triangles for different values of R and C. R is the number of rows and C is the number of columns | |
guys sorry about my post earlier . this is what i did with my program but i dont think my equation is correct because whenever i want to get the total amount due it always give the wrong amount . i dont thinks this equation is correct "amount=amount+price*quant;" guys i … |
The End.