Codifytutor Marketplace

CSC 352 Programming Assignment #3 Factoring

Write a program to factor huge integers. Read an integer N from the command line, then print it as the product of two integers (or note that it is prime) as in the following brute-force solution:

     #include <stdio.h>

     #include <limits.h>

     main(int argc, char *argv[]) {

         int d;

         int N = atoi(argv[1]);

...

Populating a binary tree using an input file in java

Populate a binary search tree from an input file (input.txt) that contains a list of numbers. The file can also contain the keyword delete followed by a number. Search for a node within the tree for that number and delete it. If the number is not found, insert the node. The tree will not contain any duplicates.

 

Sample input.txt file

1

2

3

delete 3

5

6

delete 9

 

N

...

Charting Database Data in VB.NET

For this assignment you are first going to create a Microsoft Access Database of 2014-15 Statistics for the Virginia Tech Hokies Basketball Team. Your application will read the data from the database and put it in a DataSet. Then using LINQ commands, you will first populate a combo box with player names. Then using other link

...

Qt and C++ for Image Editing

Description:

This project is an introduction to image manipulation using the graphical user interface (GUI) library, Qt4. Many professional software programs, including Maya, design and create their GUIs using Qt, and it runs on many OSs (macOS, L

...

Final Project Part 1- MDI

Multi-Document Interface

Open the project. Then rename the form frmMain as frmDashboard in the Solution Explorer (make sure that frmMain is collapsed into a single form icon, right-click and choose Rename and type frmDashboard). Change the Text property of this form to “Dashboard”. Create a new form named frmMain, set its Text property to “Client Staffing Optimization” and its IsMdiContainer property to True. Th

...

Final Project part 2- Dynamic Data Tables and Saving Solution

Dynamic Data Tables and Saving the Solution

- Create a new form named frmData. Add a tool strip to this form. Right-click on the tool strip and choose “Insert Standard Items”, which is going to create a set of standard buttons and separators on the tool strip. Except for the button that has the typical “Save” icon, right-click on each button or a separator and choose delete from the pop up menu (or click on each

...

Final Project Part 3 - Staff Analysis

Staff Analysis

- Create a new form named frmStaffAnalysis with Text property as “Staff Analysis”. Add a panel object to it and dock it at the top of the form using the Dock property in the Properties window. Adjust the height of the panel so that it does not take too much space on the form. Add two radio buttons on this panel and name them rdoBudgetedCost and rdoIdleCost with the Text properties “Budgeted Cost”

...

Final Project Part 4 - Client Analysis

Client Analysis

- Create a new form named frmClientAnalysis with Text property as “Client Analysis”. Add a panel object to it and dock it at the top of the form using the Dock property in the Properties window. Adjust the height of the panel so that it does not take too much space on the form. Add two radio buttons on this panel and name them rdoCostRevenue and rdoProfitMargin with the Text properties “Cost and

...

Final Project Part 5 - Schedule

Schedule

- Create a new form named frmSchedule with the Text property as “Schedule”. Add a panel object and dock it on top of the form, adjust its height so that it does not take too much space on the form. Add two combo boxes to the panel object named cboStaffName and cboClientName. Add label objects to

the immediate left of each combo box with the Text properties “Staff” and “Client”, respectively.

...

Final Project Part 6 - Map

Map

- Find a relatively empty map of the US or one of its states by searching for the phrase “empty map of

<place name>”, where <place name> is replaced by your preferred place like “the US”, “Virginia”, “California”, etc. Right-click and save this image to your project folder. In Visual Studio, go to menu Project > ClientStaffing Properties, open Resources, then click on the arrow next to Add Resou

...

Final Project Part 7 - Other Extensions

Other Extensions

- Error prevention. You can put your all of your controls on frmDashboard in different group boxes. You can name this group boxes with prefix gbx (e.g. gbxSolutoin, gbxStaff, gbxSolution). You can keep the group box associated with opening a database always enabled. For the rest of the group boxes, however, you can create a sub named EnableDisableConrols. In this sub if the DB property of frmDashbord is

...

Java DoubleUp

Write a method doubleUp that doubles the size of a list of integers by doubling-up each element in the list. Assume there's enough space in the array to double the size.

Suppose a list stores the values [1, 3, 2, 7]. After calling list.doubleUp(), the list should store the valu

...

ISD Term 1 Coursework 2

(a) (15 marks)

Write a function called lifeStage, this function has 2 arguments. The first is called mammal and the second is called age they are both strings.

The function returns a tuple containing one boolean and one string.

The first element of the returned tuple is True if both inputs are valid and is False otherwise.

 

If there is an invalid input then the second element of the tuple is a feedback stri

...

C++ Array Assignment

Imagine that we are writing a Matrix class that stores a 2D array. Our class has 3 data members: double* arr (a "flattened" array storing all of the elements in the matrix), unsigned int nrows (number of rows), and unsigned int ncols (number of columns).

 

Implement a print function for Matrix objects that works with cout. E.g.,

 

Matrix M(...);

 

cout << M << endl;

 

//os

...

© 2021 Codify Tutor. All rights reserved