Consider a super market which has different categories of items like grocery, stationary, cosmetics, etc. Under each category, the shop holds a maximum capacity of 100 items. The arrangement of items in the racks vary from time to time. Based on the item type and availability, the supplier also varies. Each supplier can supply different items. The system in the supermarket has the complete description of list of all items which includes item number, name, category, supplier name, price, total quantity and qty available. Based on the items purchased by the customer, billing is done.
From the above description, initially the owner of the shop needs to allocate the rack for the available items randomly and a data structure in the system to hold the descriptions of items. When the owner checks for an item in the stock, it should show all information related to that item(qty available is calculated based on count of type of item purchased by the customer). When the purchased items are entered in the billing section ,it should print item no, item name, qty taken, price and total price of all the items and finally the grand total to be paid .Help the owner of the shop to achieve the above said using an interactive C program which uses appropriate data structures for allocation of space for items, defining the type of items, calculating the total and providing the bill for the customers. The program should be in such a way to handle both the owner and the customer part.[Hint: Use menu driven method and appropriate derived data types like pointers,structures to achieve the result]
In: Computer Science
The TOPCAR taxi company is developing a new computer system to be used to support taxi booking and corporate client credit accounts. This computer system aims to automate some manual processes and cut down on labour costs as TOPCAR has many customers from large corporate companies, e.g. CEO, and managers often need taxi trips to the airport. The following describes the activities that must be processed by the computer system:
A client company must first register and open a credit account with TOPCAR at TOPCAR’s website, in which case certain credit checks are made such as checking credit history of client company’s debt level. If the client company has no bad debt history, a credit account for the client company is set up.
At least 24 hours after successful account registration, authorized persons from such client company can request a taxi booking form TOPCAR’s website. When this happens, the availability of a taxi at the requested date and time is checked, as is the credit status of the client company checked. (Note that credit status in finance means a measure of a lender’s willingness to lend money to a particular person or organization, depending on their ability to repay).
If these two checks are successful, a booking is made, and a written confirmation is sent via SMS and emailed to client company. After the customer from the client company has used the taxi, the driver sends in a record of the work, including the cost, and this is added to client company’s account. (Note that driver is an outsourced worker from TOPCAR’s point of view.) At the end of each month, taxi bills are sent via SMS and emailed to client companies for settlement.
From the above description, draw a data flow diagram showing the flow of input information (and/or data) and output information (and/or data) to and from processes and database stores within this computer system and any external environmental elements that interact with this computer system. In this diagram, you must identify the following:
in (a) (5.5 marks)
(Hint: there are two environmental elements that interact with this computer system, and six main processes in this computer system)
In: Computer Science
Represent the decimal number -6 in binary using 4-bits:
3a) signed magnitude ____________________________
3b) 1’s complement _____________________________
3c) 2’s complement _____________________________
In: Computer Science
JAVA PROJECT USING NETBEANS
An application that keeps a record of family profiles in a city that are qualified in the program. Only one member of the family is allowed to apply for the SAP ( is a program/Organization) and that is the head of the family. Qualified families are those that belong to the poorest of the poor whose total daily earning is 550 or below per day. (Assume that the income is the only qualification. In reality there are more like senior citizens, indigent people, disabled persons, etc.)
Minimum Requirement:
The application/ program must be able to do the ff:
• process an application for the program which is the SAP. Make sure that the applicant is qualified and that there was no prior application made by any member of his family.
(OPTIONAL if you can only do this part) • generate a sorted list of all SAP (is a program/organization) beneficiaries in the city.
(OPTIONAL if you can only do this part) • generate a sorted list of SAP (is a program/organization) beneficiaries per family size.
(OPTIONAL if you can only do this part) • count the number of beneficiaries that earn less than 100 per day.
In: Computer Science
Develop a program that magnifies (monochrome) image by a factor of 2^N using bilinear interpolation. Implement this up-scaling in 2 different ways: 1) directly, i.e. calling interp2 once; and 2) ? times iteratively doubling the size. Compare the outputs and discuss the variation in the output (if any).
In: Computer Science
Translate the following segment of Python into ARMv8 assembly. You may assume that two positive integers a and b have already been stored in registers X0 and X1. , which should have the correct end values for a and b at the end of the code.
while a != b:
if a>b:
a = a - b
else:
b = b - a
Note: Labels must be on their own line, and all programs must start with the label main:
Test
X0=49 X1=64
Expected
X0: 1
In: Computer Science
C++ and leave comments explaining. Thank you
You are given two STL lists X and P where n P is already in sorted order. Write a valid C++ function
printPositions(X,P) that prints the elements in X specified by P. For example, if P = 0, 3, 7, 8, the elements in positions 0 (head of the list), 3, 7, and 8 in
X are printed. You may use only the public STL container operations. Also specify the running time of your algorithm using Big-Oh notation.
Hint: You may wish to use iterators while keeping track of the position of items being iterated through.
In: Computer Science
Write a program that given a number entered through a cell, say if it is positive or not positive.
programming language is VB8
In: Computer Science
MATLAB: Write a function called max_number that takes an at most two-dimensional matrix A as its sole input. The function returns the largest element of A. You are not allowed to use the built-in max function.
In: Computer Science
in BASIC language, i need to make function smallMiles(size) display the smallest number in the MilesDriven array . here is my code so far:
size =1
Dim Monthname$(size)
Dim MilesDriven(size)
do
print "Enter your choice from this menu."
print "Enter 'P' to enter miles and month,OR"
print "Enter 'S' to search for month. OR,"
print "Enter 'M to search month with smallest miles. OR,"
print "Enter 'L' to search for month with largest miles. OR,"
print "Enter 'E' to exit."
input choice$
select case (choice$)
case "P","p"
res= collectData(size)
case "S","s"
res = search(size)
case "M","m"
res = smallMiles(size)
case "L","l"
res = largeMiles(size)
case "E","e"
print "Have a nice day.Goodbye."
case else
print "Invalid choice, please try again"
print
end select
loop until (choice$ = "E" or choice$ = "e" )
function collectData(size)
for position= 0 to size
print "Enter miles."
input MilesDriven(position)
print "Enter month."
input Monthname$(position)
next
end function
function search(size)
print "Enter month."
input month$
for position = 0 to size
if(month$ = Monthname$(position))then
print "The month is: ";Monthname$(position)
print "The number of miles driven is: ";MilesDriven(position)
exit for
end if
next
end function
function smallMiles(size)
print "Enter month."
input month$
for position = 0 to size
smallest = MilesDriven(position)
if (month$ = Monthname$(position))then
if (MilesDriven(position) < smallest )then
smallest = MilesDriven(position)
end if
print "The month with smallest miles driven is:
";Monthname$(position)
print "The smallest miles driven is: ";smallest
exit for
end if
next
end function
In: Computer Science
c++ program to calculate the sum of the rows and the columns in a multidimensional array
In: Computer Science
Write a program that reads a student's code and grades from all four tests of any matter; and calculate and print the final grade for the subject, along with the student code. Taking into account that: The value of the first is 15% The value of the second is 25% The value of the third is 30% The value of the fourth is 40%
Programming language is VB8
In: Computer Science
Which command is used to hold open a very short or zero-length file?
In: Computer Science
USB memory devices are displayed in Linux as which of the following?
In: Computer Science
You has been requested to design and develop a food ordering system in C++ language based on following requirements:
The system shall allow the user to place an order for the food(s), view the food details, modify or delete the details of the food if necessary. Your program should be menu driven, giving the user various choices. You shall design the system by demonstrating the full understanding of object-oriented and use of list/link-list concept.
For every food order, the following information will be stored: Order ID (Auto assigned, unique ID), Food Code, flavor (example: Strawberry, chocolate), weight (Kg), Unit Price, Qty and customer information who order this cake. The customer information consists of customer ID, name, address and contact number. The order ID shall be automatically assigned with a unique ID when new order is added. The system shall display additional information that is amount (unit price * qty) when viewing the order details.
In: Computer Science