Write a function that receives a mark as a number and calculate the final percentage
of the student. The assignment mark is out of 90 marks
Make a console app with menu:
1. Add product
2. Search product
3. Add category
4. Add product to category
5.Display list of Cateory
6.Delete product
7. Exit
**************************
List of Category
*****************************
Name Price
------------------------------------------------------------------
T-Shirts (2)
Black T-Shirt 199
White T-Shirt 249
Shoes (1)
Nike Sneakers 249
one class for ProductCategory.
shall keep necessary information about a category, including associated products (List <T>).For each category, the name and number of products are shown in this (to the right of the name). During the category, all products are listed to this, with the name and price.
How to add value in Dictionary to List
For example:
Dictionary<string, object> = dic <string,object>();
List<string> = list<string>();
A series XYZ is given below. First three elements (element no. 0 to element no. 2) of the series are 1, 2 and 3 respectively. After that, any ith element of the series (for i>2) is the sum of the previous three elements. For example, 6 = 1+2+3 and 68 = 11+20+37. Your task is to write a program that prints the first 10 elements of this series.
You may use arrays but you are not allowed to use linkedlist.
XYZ Series: 1, 2 , 3 ,6 ,11 ,20 ,37 ,68 ,125 ,230 ,423 ,778 ,1431 ,2632 ,4841
define mesure of an array is computed as follows. count the number 1s in the array.let this count be n. the define array measure is number of times that n appears in the array. for example , the station ,measure of {1,4,3,2,1,2,3,2,} is 3because 1 ocurs 2 time in the array and 2 occurs 3 times.
(Pointers to objects)
Define a class 'Item' that is used to store and display the information regarding the item
number and its price. Write a program to store and display the details of one
items by using both normal object and pointer to object separately. Display
appropriate message wherever necessary.
Arjun wants to count total number of digits of an integer number (N).Help him to generate the programme for the same.
(only by if-else or nested if-else)
Write a program that displays the following menu to the user:
Press 1 for Permanent Employee
Press 2 for Daily wages Employee
After selecting the appropriate employee calculate salary and medical charges for the employees. Following
menu would be displayed:
Press a to calculate Salary
Press b to calculate medical charges.
The daily wages employees are paid 400 per hour while permanent employees are paid 800 per hour.
When you would calculate the salary, first you need to ask for the number of hours for which the
employee has worked so far. The permanent employees are paid 5% medical charges of their total
salary while daily wages are paid 3% of medical charges. For calculating medical allowance no further
selection/input is required.
Zombie Apocalypse
A patient with first stage zombie virus has escaped from the facility in a city of population N. The zombie virus is very dangerous as it passer on to other people as they come in contact with the patient making them a patient as well.
Zombie virus has K life stages to develop, each of which takes 1 unit of time. Only the last stage is contagious. A person with zombie virus attacks only healthy people and can only affect one person in 1 unit of time.
if the patient escaped on Day 1. Find out the number of days it will take to wipe out the entire city's healthy population and turn them into a last stage zombie.
Note: 1 unit of time is equal to 1 day.
Input Specification.
Input1:Total healthy population of the city.
input2:Number of stages of zombie virus.
Output Specification
your function must return the numbers of days.
Example 1:
input1:10
input2:1
output:5
please give java code for this question.
Arjun wants to count total number of digits of an integer number (N).Help him to generate the programme for the same