It is being debated that these imported cars contribute immensely to the high road accident cases in Ghana. The government has decided to charge 0.5 % tax on every car purchased from KTA. This will increase sales of KTA cars and arguably reduce road accidents in Ghana You are to write a program. Your program should: a. Request for a username and password to be inputted. Your username and password should grant access to the program if they are correctly inputted. (ANS) b. Your program should have a function that calculates and displays the tax on any car (ANS) purchased. c. Your program should be able to perform "b" above at least 10 times. (ANS) d. Assuming sales have now gone up and the government has scraped the tax incentive. tax of 25% imposed on each car sale. Modify a portion of the code to reflect the new development (ANS) e. Explain how the Ghana Revenue Agency (GRA) can use your program to calculate tax on goods imported into the country.
How is the most appropriate form of protection applied for in terms of intellectual property?
Write a java program that accepts given n number of marks for a PRG510S test, and stores them into an array named marks. After all marks have been entered your program should accomplish the following:
[n - to be provided by user input]
a) Find and display the highest mark
b) Find and display the lowest mark
c) Compute and display the average mark
(Above tasks (a, b, and c should be accomplished using only one loop)
Write a java program that specifies three parallel one dimensional arrays name length, width, and area. Each array should be capable of holding a number elements provided by user input. Using a for loop input values for length and width arrays. The entries in the area arrays should be the corresponding values in the length and width arrays (thus, area[i] = length [i]* width [i]) after data has been entered display the following output:
Write a java program that accepts given n number of marks for a PRG510S test, and stores them into an array named marks. After all marks have been entered your program should accomplish the following:
[n - to be provided by user input]
a) Find and display the highest mark
b) Find and display the lowest mark
c) Compute and display the average mark
(Above tasks (a, b, and c should be accomplished using only one loop)
Sample Run1
Enter numbers of marks: 10
Enter 10 marks: 55 60 89 75 25 77 92 15 68 40
Output1: Highest Mark = 92%
Lowest Mark = 15%
Average = 58%
Write a Python function, named “find_fibonacci”, which accepts a list as input. The function will find and return the elements that satisfy the Fibonacci property:
Example : Input list : [2, 8, 4, 6, 1, 7, 8, 4, 7, 9, 4, 13]
Returned list : [[6,1,7], [1,7,8], [9,4,13]]
Write Python code that uses nested loops to display the following pattern:
1
1 2 1
1 2 4 2 1
1 2 4 8 4 2 1
1 2 4 8 16 8 4 2 1
.
.
.
1 2 4 8 16 32 64 128 64 32 16 8 4 2 1
Write a Python function that finds and prints all the prime numbers, pn, that satisfy the following equation: pn=2k+3L
for some non-negative integers k,L, such that k≤16, L≤16.
write a program to find the smallest value in a vector that is larger than the smallest vaue presented. for example 1 ,2 , -7 . -6 . 3 smallest = -5 . another example -45 , -1000 , -1 , -2 , smallest is -999