Category Archives: Software Engineering

C++ Pointers Lab

Create two triangle classes, one where the internal properties are stored on the stack and one where the internal properties are stored on the heap.  Each triangle should have a base, height, and a function that returns the area.

Triangles 1:  Create a vector of triangles where everything is stored on the stack. 

Triangles 2: Create a vector of triangles where everything is stored on the heap.

Triangles 3:  Create a vector where the items in the vector are stored on the stack, but the individual items have some data on the heap.

Triangles 4: Create a vector where the items in the vector are stored on the heap, but the individual items use no dynamic memory.

Note:  Think about what version of the triangle you should use for each scenario and make sure you do not have any memory leaks.

Assembly program

Perform a program written in ASSEMBLY 486, on Linux, with the requirements indicated below

Requirements:
The program should ask the user for the name of the file to be read.
The program opens a text file and performs one of the following operations:
1- Read the contents of the file, change the lowercase to uppercase letters, and print the result on the screen
2-Read the contents of the file, change capitals to lowercase, and print the result on the screen
3-Read the contents of the file, eliminate punctuation characters, and print the result on the screen
4-Read the contents of the file, eliminate the figures, and print the result on the screen
5-Read the contents of the file, eliminate all letters, and print the result on the screen
6-Read the contents of the file, leave only the punctuation marks, and print the result on the screen

The previous options must be displayed on the screen and the user chooses the desired option.
After executing the user’s request, the program again asks for an option.
There must be an option to exit the program.

Linux Project

Objectives:
To install and configure a SIP based IP-telephony server.
To be introduced on some telephony features an IP-PBX can provide.
To gain a basic knowledge on SIP server troubleshooting tools.
Tasks:
1- Install and configure a SIP based open source PBX.
2- Configure, connect and test a SIP based soft phone to the installed PBX.
3- Implement the following features that the PBX can provide:
a- Hunt group in ring all mode with three members.
b- Interactive voice response IVR with two levels menu options.
4- Use the PBX built-in SIP trace to log a completed SIP call trace and a failed SIP
phone registration request.
Submission Requirements:
1- An implementation report listing the, PBX network configuration configured
admin users names and passwords, configured extensions list and ring groups.
Also the report should include the requested SIP trace logs.
2- A live demonstration and presentation on the configured PBX; during this
demonstration an individual evaluation will take place.

Required Tools:
1- TrixBox 2.8.04
Trixbox CE is an easy to install, VOIP phone system based on the Asterisk PBX.
Trixbox is designed for home or office use. Trixbox CE includes CentOS linux,
mysql, and all the tools needed to run a business quality phone system.
Web Link:
ftp://ftp.uk.freesbie.org/sites/downloads.sourceforge.net/a/as/asteriskathome/
trixbox%20CE/trixbox%202.8/
2- Virtual box
VirtualBox is powerful Cross-platform Virtualization Software for x86-based
systems. “Cross-platform” means that it installs on Windows, Linux, Mac OS X
and Solaris x86 computers. And “Virtualization Software” means that you can
create and run multiple Virtual Machines, running different operating systems, on
the same computer at the same time. For example, you can run Windows and
Linux on your Mac, run Linux and Solaris on your Windows PC, or run Windows
on you Linux systems.
Web Link:
https://www.virtualbox.org/wiki/Downloads
3- Zoiper Suggested
It is a SIP based soft phone, different soft phone client can be used.
Web Link:
http://www.zoiper.com/en/voip-softphone/download/zoiper3
4- Putty
It is a free and open-source terminal emulator and serial console. It supports
several network protocols, including SCP, SSH, Telnet, rlogin, and raw socket
connection. It can also connect to a serial port.
Web Link:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
5- Winscp Optional
WinSCP is an open source free SFTP client and FTP client for Windows. Its main
function is the secure file transfer between local and remote computer.
Web Link:
http://winscp.net/eng/download.php

Python code

USER – CONTACT
User Contact
Brinda has recently joined a company and she is working as a software engineer. She was associated with a project to work on relationships. To get hold of the topic she starts writing a code where she takes the details of her colleagues and displays them in an ordered way. Let’s help Brinda to complete her code.

Create User class as the parent with the following attributes.

Attribute    Data Type
name    str
age    int
gender    str
contact    Contact
Use __init__() constructor to initialize the variables with respect to class.

Create a class Contact class with the following attributes.

Attribute    Datatype
phone_no    int
email_id    str
address    str
Use the following method to display the details in both class.

Sl.No    Method    Description
1.    __str__()    This method is used to return the string which needs to be printed

Note:
Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, attribute names, and method names should be the same as specified in the problem statement.

Input Format:
The first line of the input consists of string value corresponding to the name.
The second line of the input consists of Integer value corresponding to age.
The third line of the input consists of string value corresponding to gender.
The fourth line of the input consists of an integer value corresponding to the phone number.
The fifth line of input consists of string value corresponding to the email id.
The sixth line of the input consists of string value corresponding to the address.

Output Format:
Refer sample input-output format for better understanding.

Sample input-output [All lines in bold corresponds to the input]:
Enter Name
Chandan v
Enter Age
22
Enter Gender
Male
Enter Phone Number
8892563578
Enter Email id
[email protected]
Enter Address
Ramakrishna nagar,Mysore.

Name:chandan v
Age:22
Gender:Male
Phone Number:8892563578
Email id:[email protected]
Address:Ramakrishna nagar,Mysore.

C programming

I need to have a fully working C program, There are five data (plain text) files, namely, the students.txt, courses.txt, registrations.txt, criteria.txt, and performances.txt that keep information. Student file keeps the information about students such as the student number, name, surname, and department in abbreviated form. Course file keeps the information about courses such as the course code and course title. Criteria file keeps the information about course assessments such as the course code, course credit value, homework, lab, quiz, midterm, and final percentages. Registration file keeps the information about the students registrations such as the student number, academic year, semester, and course code. Performance file keeps the information about the students performances such as the student number, course code, and performances.
Below explanations are given for better understanding of the file formats (contents).
A sample line from the student file is 194162 VIANNEY DUSHIME ECE, where 194162 is the student number, VIANNEY is the student name, DUSHIME is the student surname, and ECE is department name.
A sample line from the course file is ENGL121 ENGLISH I, where ENGL121 is the course code and ENGLISH I is the course title.
A sample line from the registration file is 194162 201920 1 MATH101, where 194162 is the student number, 201920 stands for the 2019-20 academic year, 1 stands for Fall, and MATH101 is the course code.
A sample line from the criteria file is CHEM104 4 25 30 45, where CHEM104 is the course code, 4 is the course credit value, and the rest of the line 25 30 45 stands for 25% lab, 30% midterm, 45% final. To keep assessments simple, there are only three performance measures for all courses. For mathematical courses, there is midterm-1, midterm-2, and final exams. For physics and chemistry, there is a lab, a midterm, and a final. For English language courses, there is a quiz, a midterm, and a final. For COMP courses, it is either lab or homework, midterm and final exam percentages.
A sample line from the performance file is 194234 CHEM104 55 65 75, where 194162 is the student number, CHEM104 is the course code, and the rest of the line 55 65 75 stands for the performances such as 55 for the lab, 65 for the midterm, 75 for the final.
The general letter-grading policy for all courses is given as A (90-100), A- (85-89), B+ (80-84), B (75-79), B- (70-74), C+ (65-69), C (60-64), C- (55-59), D+ (50-54), D (45-49), D- (40-44), and F (0-39). The numerical grades for A-through-F are 4.0, 3.7, 3.3, 3.0, 2.7, 2.3, 2.0, 1.7, 1.3, 1.0, 0.7, and 0.0, respectively.
For instance, the student 194234 above collected 67 in CHEM104 and earned letter grade C+.

I will upload the data files later on.

Simulating Cache and Virtual Memory Assignment

Tasks: 
1. Download    the    file    cache.c    from    the    Assignment8    drop    box.
2. Implement    code    at    each    comment    containing    TODO:    that    performs    the    operation    described    in    the    comment. 
3. The    code    includes    unit    test    code    that    calls    the    various    cache    management    and    virtual    memory    functions.    Verify    your    code    works    but    using    that    unit    test.

computer science

I need help coming up with a  Pseudocode for my assignment. I’m trying to design a game of amazons type of game. It doesn’t have to be to difficult. Should be in C#. I just need help coming up with a good pseudocode. I’ve attached some more information on the assignment if you need it. Not a difficult assignment at all I’m just not very good at this yet. This is my own individual assignment

computer science

I need help coming up with a  Pseudocode for my assignment. I’m trying to design a game of amazons type of game. It doesn’t have to be to difficult. Should be in C#. I just need help coming up with a good pseudocode. I’ve attached some more information on the assignment if you need it. Not a difficult assignment at all I’m just not very good at this yet.

computer science

Module 6 Homework
Cyclomatic Complexity

10 points

Building a Flow Graph and Calculating Cyclomatic Complexity, V(G)
When you are doing white box testing, I am a strong proponent of doing cyclomatic complexity calculations and basis path testing, provided you have the time to do so. Since it guarantees complete statement and branch coverage, basis path testing gives you an absolute minimum number of test cases you should run for any given code fragment. This homework is an exercise in constructing a flow graph and calculating the cyclomatic complexity of a code fragment.

What you need to do:
For the code fragment shown below, do the following:

Construct a flow graph for the code.  You may do this in any way that allows you to send it to me in digital format.  You can create the graph using Visio, Word, or some other application.  You can also draw it on paper and scan it in – just make sure it’s clearly readable.

From your flow graph, calculate the cyclomatic complexity, V(G), using all three of the methods discussed in class.  All three calculations should agree with each other.
The code is written in Java, so you are all probably familiar with the syntax to some extent. In the event you are unable to follow the syntax, please let me know. You needn’t be concerned with what the code itself is supposed to do.

private void downShift(int index)
{
    // index of “child”, which will be either index * 2 or index * 2 + 1
    int childIndex;

    // temp storage for item at index where shifting begins
    Comparable temp = theItems[index];

    // shift items, as needed
    while (index * 2 <= theSize)
    {
        // set childIndex to “left” child
        childIndex = index * 2;

        // move to “right” child if “right” child < “left” child
        if (childIndex != theSize && theItems[childIndex + 1].compareTo(theItems[childIndex]) < 0)
            childIndex++;

        if (theItems[childIndex].compareTo(temp) < 0)
        {
        // shift “child” down if child < temp
            theItems[index] = theItems[childIndex];
        }
        else
        {
            // shifting complete
            break;
        }

        // increment index
        index = childIndex;
    }

    // position item that was originally at index where shifting began
    theItems[index] = temp;
}

What you need to turn in:
Your flow graph in one of the following formats:

Visio document (.vsd)

Word or Rich Text document (.doc, .rtf)

JPEG or GIF image (.jpg, .gif)

Your 3 V(G) calculations.

RESNET18 CIFAR 10

Construct a lighter and smaller Residual Network (ResNet) architecture.Train your network to perform image classication by minimizng the cross-entropy between the network’s prediction
and the CIFAR-10 targets.
As the training proceeds, plot the loss value and the classication accuracy on training and validation set,
and choose the iteration with the least error.