Hello I'm writing a program that reads in data from a file to create an array of clients and stocks. I completed my client class and stock class. I'm stuck on my driver. ![Screen_Shot_2019-12-02_at_11_53_13_PM.png](/attachments/large/4/0ceae90458b69aa4d08f7e5937ba4a6e.png) This is what I have it prints the text file but where would I include the array its part of the project? I would love any feedback.

Member Avatar
Member Avatar
+0 forum 1

analyze the problem. walkthrough the code. I would like to charge for this solution $10 to Renewal Computer Services, if I may post here (kids & teens free). when -50 is reached, doesn't blow past the maxvalue+1U and cause a cpu-hogging forever loop, it doesn't actually reach -50 equivalent (UINTMAX-49). #include <cstdint> #define ufordown0(var,maxvalue,step) for(uint64_t var=maxvalue; var>maxvalue; var-=step) /* Example: ufordown0(i,200U,50U) { } */

Member Avatar
+0 forum 0

Machine learning is the science of getting computers to act without being explicitly programmed. machine learning has given us self-driving cars, practical speech recognition, effective web search, and a vastly improved understanding of the human genome. It is so pervasive today that you probably use it dozens of times a day without knowing it.

Member Avatar
+0 forum 0

I need help with a code for averaging grades it works on a online compiler but it doesn't work on visual studio 2019

Member Avatar
Member Avatar
+0 forum 4

The reverse program shown in the slides of chapter 13-1 (also present in the book) reads from a file/command line using system calls and outputs the lines in reverse order on the terminal. The last line is swapped with the first line , the second last is swaped with the second line and so on. It also has a -c option to run with. When used with -c option it reverse the characters of each line as well. For example, Lets say below are the file contents of your file. This is line 1 This is line 2 This is …

Member Avatar
Member Avatar
+0 forum 2

TextBox1.Text = (DateTime.Now.Year - dateTimePicker1.DisplayDate.Date.Year).ToString(); Here we can solve just year of birthday But How can we get year of Month and Day

Member Avatar
+0 forum 0

Hello, so im making an os in pydroid 3, but i cant make a clock, im trying to make a graphical os but i cant cause i need a clock, Any idea? And i edited someones code for username and password to work, but i had to delete raw_data or the program wont work, like, i enter a username and a password and it says wrong username/password entered, any help?

Member Avatar
+1 forum 0

Can any one give me snippt code for single, double and single circular linked list.

Member Avatar
Member Avatar
+0 forum 1

hi all i am making a weather data program and i having a problem for bringinng my text file to the table. here i am putting all my code . and i also have to import a second output window for my code. for example when ever i enter ome value int he window to compute it should show that value in the other window after compute. i have that code ready but i dont know how to implement in this one. package windchill; import java.awt.Color; import java.awt.Desktop.Action; import java.awt.Font; import java.awt.Toolkit; import java.awt.event.*; import java.io.IOException; import java.text.DecimalFormat; import java.util.Scanner; …

Member Avatar
Member Avatar
+0 forum 1

Need help modifying this code to add to my code. My code creates a grid but does not check if a word exists or not yet. Also, it should be user interface, user types in word, and computer outputs yes or no. // C++ program to check if the word // exists in the grid or not #include <bits/stdc++.h> using namespace std; #define r 4 #define c 5 // Function to check if a word exists in a grid // starting from the first match in the grid // level: index till which pattern is matched // x, y: current …

Member Avatar
Member Avatar
+0 forum 2

using an array as a subroutine, then checking if its in ascending order then finding the median

Member Avatar
Member Avatar
+0 forum 1

hi I have datagridview which i want to add on several forms. Number of columons and all ather functionality remains the same. to avoid creating size, columns, column names each time, i am trying to create class control for datagridview which will give me by default number of columns and size once i add the datagrid to form. i have tried this . **But it shows ten columns instead of five** . attached picture Public Class ClsDgvJournal Inherits DataGridView Public Sub New() Width = 500 Height = 200 Dim Col1 = New DataGridViewTextBoxColumn With {.HeaderText = "AAA", .Name = "A", …

Member Avatar
Member Avatar
+0 forum 13

I couldn't install the tensorflow framework in my laptop.can anyone help me out in installing tensorflow for doing my project on deep learning techniques.

Member Avatar
Member Avatar
+0 forum 1

Hi all, I am working on a project that should take all the data from file redirect and write them to a new file. Here is what I have: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "node.h" #include "tree.h" #define TRUE 0 #define FALSE 1 #define stdin stdin #define stdout stdout #define stderr stderr int main(int argc,char *argv[]) { int i; FILE *fp; fp = fopen("result.out", "w"); //create file to write stdin data to. if(fp == NULL) // file validation { printf("Could not open file"); return 0; } if(argc == 1) // executes if command line has file …

Member Avatar
Member Avatar
+1 forum 2

As you noticed by the title I didn't used the term “know” since I find it more ambiguous then “you can code in”. To keep answers short lets limit ourselves to five languages at most , have the same list for strongest and weakest points and mention those point in brief (one or two sentences). Who will go first ?

Member Avatar
Member Avatar
+0 forum 5

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

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 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

i have 2 sperate projects which i am trying to run together as a shared project but i am failing hard……. Basically, first project does infix to postfix notation and the second projects does postfix evaluation. tried to run all that in 1 project but i keep getting all sorts of error and cannot figure it out, I am kind of lost don’t know what to do. any suggestions would be really appreciated!!!!!!!!! the first 3 files is infix to postfix project and the last one is posftix evaluation. this is the calculator.cpp #include "stdafx.h" #include "Calculator.h" #include <iostream> #include …

Member Avatar
Member Avatar
+0 forum 6

[CODE] #include <stdio.h> #include <stdlib.h> typedef struct filedata { char data[100]; }data_t; data_t * fname=NULL; //IS AN ARRAY OF the structure filedata REQUIRED HERE void quit() { printf("\nPress enter to exit"); fflush(stdin); getchar(); } int main() { char ch; fname=(data_t *)malloc(sizeof(data_t)); FILE *fptr=NULL; atexit(quit); printf("Please enter the file name to read : "); fflush(stdin); scanf("%s",fname->data); fptr=fopen(fname->data,"rb"); if(fptr == NULL) { perror("Could not open the file "); return; } printf("\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"); printf("Contents of the file %s are : ",fname->data); [B] while(fread(&fname, sizeof(data_t), 1,fptr) == 1) { // what do I put here? }[/B] fclose(fptr); return 0; } [/CODE] I want to read …

Member Avatar
Member Avatar
+0 forum 11

I'm trying to initialize var altitude. init(altitude: CLLocationDistance) { self.altitude = altitude super.init(nibName: nil, bundle: nil) } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } But it gives me an error: Property 'self.altitude' not initialized at super.init call Thanks

Member Avatar
+0 forum 0

I need to write a program that reads data from a text file, and prints it. These are the specifications. And then manipulate the program to determine this: -The number of uppercase letters in the file -The number of lowercase letters in the file -The number of digits in the file -The number of whitespace characters in the file I really need help doing this, it has to pertain to strings, but also basic concepts of Python. Im at a begginners skill level, and Im stuck. Much help would be GREATLY appreciated, thank you!

Member Avatar
Member Avatar
+0 forum 5

Hi there! I hope I'm putting this in the correct section... Recently I though of the idea of "building" something for me. As you may guess for the title, I want to create an email client and I know there are a lot nowadays but either because of limitations or graphic design I want to do one by my own and for myself. And maybe in the future I would release it as an app for the web, desktop and/or mobile. What I can't decide is what language(s) and/or framework(s) I should use to create such a thing, so... If …

Member Avatar
Member Avatar
+0 forum 2

Hello there! I've got the following assignment: Write a method in Java called FirstDNAMatch(shortDNA, longDNA) that receives 2 strings with the letters that have to do with the four main nucleobases found in the nucleic acids DNA (A for Adenosine, G for Guanine, C for Cytosine and T for Thymine). The method must return the index of the first spot where the first DNA chain can connect to the second or -1 if there is no spot for the 2 chains to match. A matches with T (and other way round) and C matches with G (and other way round). …

Member Avatar
Member Avatar
+0 forum 9

Sorry if I sounds mad...I have a some knowledge in c++ programing language. But I have been wondering if I can learn assembly language so that I can play with my pc as I like by programing it, creating DOS like programs and so on...but in my research I came to know assembly language differs from system to system . If it is so how can i learn assembly language . And plz tell me if I am on the right path in programing . Plz help

Member Avatar
Member Avatar
+0 forum 6

This program is for a car rental agency. Your program will have to compute the total cost of a rental. This agency has two types of cars, and the rates per day are as follows: All cars come with a basic insurance that covers damage to third Driver above 25 years of age Driver 25 years old or younger. Compact car $60 $80 Mid-size car $75 $100 Table 4: Price list for problem A.3 parties. Comprehensive insurance cover costs $30 for compact cars and $40 for mid-size cars.

Member Avatar
Member Avatar
+0 forum 6

I'd like to know main differences between C and C++,because they look similar.

Member Avatar
Member Avatar
+0 forum 6

Please help to create a driver file of the given code becoz i dont know what should i do to create a driver file. import javax.swing.*; class Product{ private String PId; private String PName; private String PPrice; private String Pcategory; private String PQuantity; private String PDescription; public Product(){ PId=null; PName=null; PPrice=null; Pcategory=null; PQuantity=null; PDescription=null; } public Product(String i, String n, String p, String c, String q, String d){ PId=i; EmpName=n; PPrice=p; PCategory=c; PQuantity=q; PDescription=d; } public Product (Product Products){ PId=Products.PId; PName=Products.PpName; PPrice=Products.PPrice; PQuantity=Products.PQuantity; PDescription=Products.PDescription; } public String getPId(){ return PId; } public void setPId(String _PId){ this.PId=_PId; } public void setPName(String …

Member Avatar
+0 forum 0

I'm taking a database class, to be more specific MySQL. I want to know if I will use this if I enter the programing field as a C#, C++, or Java programmer. If so what will I need to know

Member Avatar
Member Avatar
+0 forum 3

Hi DW We want to run an experiment in our lab on ATM, we just want to keep it simple and easy, So far I've just created the two forms and since I've discorvered that most of the ATM's are running a Windows OS which I saw it in one garage so I just decided to start this experiment to see if it is really posible to run a Windows Application form project on an ATM but the problem with the ATM is It screen they use a special small screen to secure and they also use the special keyboard …

Member Avatar
Member Avatar
+0 forum 2

The End.