Make a sample program using gotoxy function.
COVID-19 has triggered panic buying from Ghanaians with the expectation that there will be declaration of lockdown after the closure of school across the country. Retailer are increasing the prices of their goods on the shelf based on the time it stays on the shelf. The management of “Brutus Stores” have decided on this price policy. The price of any item which is expected to sell within a week should be increased by 20%. However, if an item stays on the shelf after a week but less than or equal to two weeks the price should be increase by 15%. The price of any other item that stays on the shelf for more than two weeks should be increase by 2%. As a programmer you have been consulted to develop a program that will:
6
a) Request for item name, current price in GHc, expected duration on shelf and compute the retail price.
b) Display the results from “a”
c) Critically explain the logic behind the code
The government’s quest to fight COVID-19 has led to the establishment of a PPE production factory in the Greater Accra region. The factory is classified as a high risk working environment and the workers are paid an hourly rate of GHs 30 for regular hours per week and any extra hours are paid one and one-half times that. From the worker’s gross pay, 6% is withheld for social security. 7% is withheld for tax and 3% is held for union dues. If the worker has dependents, the government pay 5.5% of the weekly wage per dependent up to 3 dependents into an insurance account. Write a program that will:
a) request for the number of hours worked in a week, and the number of dependents.
b) compute the weekly wage, social security, tax and dependents insurance (if any).
c) display and explain your results in “b” above.
Programming Problem I ( Singly Linked List)
Suppose there are two singly linked lists both of which intersect at some point and become a single linked list. The head or start pointers of both the lists are known, but the intersecting node is not known. Also, the number of nodes in each of the lists before they intersect is unknown and may be different in each list.
For example, List 1 may have 11 nodes before it reaches the intersection point, and List 2 might have 111 nodes before it reaches the point of intersection where 111 and 11 may be m = 11, 111 < 11 or 111 > 11. Give an algorithm for finding the merging point.
Write c++ code that
(1) Please program to judge the positive and negative and odd and even of an input integer.
(2) If it is a positive number, please output z; if it is a negative number, please output f.
(3) If it is an even number, please output o; if it is an odd number, please output j.
(4)test run the code
on function ax^2+bx+c ,Create the table on set of set of input x = [-4,-3,-2,-1,0,1,2,3,4]
2. Plot the graph i.e., parabola using the table created in part(i) .
3. Calculate the first derivative of the function .
4. Find the first derivative of the function and use that to evaluate the extreme value .
5. Using the second derivative , tell that the extreme value calculated is minima or maxima.
Design a program using one-dimensional array that demonstrates the concept of linear search. The program will ask the user how many elements will be processed, and the program will ask the user to give a series of numbers. The program will ask the user to enter a number to be searched. If the given number is in the list, the program will display the number and identify the exact location where the number is located. The program will also display No Number Found when the number is not given in the list.
Using a two-dimensional array, design a program that asks the user to give the size of an array and ask the user to give a series of numbers. The program will determine and display which of the given numbers has the biggest in terms of numerical value.
Write a C++ that prints your name ,your index number filed and study of the university name to the screen
Dear,
Greetings and I am one of the C++ programming learners. I need help formula/code of the scientific calculator that has all stap.
I try to do this calculator but not run it when I try.