· Subnet C:
o Subnet ID: Subnet Mask:
o First Host IP address:
o Last Host IP address:
o Broadcast ID:
· Subnet D:
o Subnet ID: Subnet Mask:
o First Host IP address:
o Last Host IP address:
o Broadcast ID:
· Subnet A:
o Subnet ID: Subnet Mask:
o First Host IP address:
o Last Host IP address:
o Broadcast ID:
· Subnet B:
o Subnet ID: Subnet Mask:
o First Host IP address:
o Last Host IP address:
o Broadcast ID:
You are creating a new, innovative machine for a company that you work for. The idea is new and will give your company a real competitive advantage. The owner of the company wants to copyright the machine that you are developing. You need to explain the following to the owner of the company
Determine whether the following are valid switch statements. If not,
explain why. Assume that n and digit are int variables. (11)
a. switch (n <5 2)
{
case 0:
cout << "Draw." << endl;
break;
case 1:
cout << "Win." << endl;
break;
case 2:
cout << "Lose." << endl;
break;
}
Using while or do-while loop. Make a program that will input birth year. Compute and Display the age of this current year 2021. Your will be terminated if you input zero in the birth year.
A new author is in the process of negotiating a contract for a new suspense novel. The publisher is offering three options. In the first option, the author is paid $5,000 upon delivery of the final manuscript and $20,000 when the novel is published. In the second option, the author is paid 12.5% of the net price of the novel for each copy of the novel sold. In the third option, the author is paid 10% of the net price for the first 4000 copies sold, and 14% of the net price for the copies sold over 4000.
The author has some idea about the number of copies that will be sold and would like to have an estimate of the royalties generated under each option. Write a program that prompts the author to enter the net price of each copy of the novel and the estimated number of copies that will be sold. The
program then outputs the royalties under each option and the best option the author could choose.
(Use appropriate named variables to store the special values such as royalties rates and fixed royalties.)
You are required to build a program for ABC Builders, they have various models of houses which are all build on 1 canal area, the three models with costs are
House Models Building Cost Double Story House 10000000 House with basement 20000000 Single Story 5000000
The property dealer give them the latest prices for area their house covers and the construction price building each model. The price of area is 1 crore, Calculate the total cost of whole house after construction. Suppose you have two users for this program, take input from them and based on their inputs calculate the total cost for their choice of house.
Make a program that will input Kilogram, convert it into grams and pounds. Display the equivalent Gram/s and Pounds (1 Kg=1000 grams and 1 Kg = 2.2 pounds. Your program will be terminated if you input zero in the kilogram.
Write a program that able to compute the pay of both types of employees: retired one’s and employed,
the retired employees will receive pension and it will be computed and displayed with proper variables
and messages. The pension of the employer will be fixed and will be computed on the basis of age, if the
age of the retired employer is between 60 to 70 years then its pension will be 30000 and if the age is
greater than 70 then the pension will be 40000. The pay of the employer will be computed on daily
worked hours and the net pay will be shown with the proper messages of gross salary. The pay of the
employer will be 1000 rupees per day if he/she worked for 8 hours and if it works more than 8 hours, then
he will be paid 300 rupees per hour but the extra time can only be utilized at maximum of 3 hours.
Write a program that prompts the user for number of students to process. The program will allow the user to enter the name of student and then it will ask for the number of marks for that student. The program will then prompt for each score and will calculate the average mark for each student.
Sample Run:
Enter number of students: 2
Enter student 1 name: Jenny
Enter number of marks for Jenny: 2
Enter mark 1: 99
Enter mark 2: 88
Enter student 2 name: Kevin
Enter mark 1: 75
Enter mark 2: 76
Enter mark 3: 78
=============================
Student 1: Jenny
Marks: 99 88
Average for Jenny is: 93.5%
=============================
Student 2: Kevin
Marks: 75 76 78
Average for Kevin is: 76.3333%
=============================