Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Given an integer N as input, write a program to print a number diamond of 2*N -1 rows as shown below.


my number is 1921038

Each student’s number uxxxxxxx must be converted into the format xxx.xx.xx.0/25 by applying the following procedure to obtain the student’s block IP address and mask

First IP 1. If first digit is 1 or 2 then take the first three digits as the first section of IP address 2. If first digit is 0, then take the first three digit and replace the leading 0 by 1, for the first section of IP address.

Second IP 1. Take the next 2 digits (digit 4th and 5th of your student number) the second section the IP address; 2. If both are 0s (zeros) replace them by 11 and if only the digit 4th is 0 then ignore it (i.e. do not include it in your IP address).

Third IP 1. For the third section of the IP address, take the following 2 digits (digit 6th and 7th) 2. If both are 0s (zeros) replace them by 11 and if only the 6th digit is 0 ignore it (i.e. do not include it in the IP address).

Fourth IP 1. The last section of the IP address must be zero Mask 2. Finally, the mask is /25



. Computer Science is no more about computers than medicine is about stethoscopes. Do you agree with this statement or not; defend your answer with practical examples.


You are requested by a SuperStore (Spar) in Soshanguve to calculate it’s earning for the week (the store opens the entire week) and determine the day with the highest and lowest earnings. The Store comprises of two sections namely the Food section and the Liquor store. Your C++ program should prompt the total sales for each section for each day and store the total sales for the day into an array. At the end of the week It should display a report for Management for the total sales for that week, the day the lowest sales and the day with the highest sales were recorded.



- Write a return-value function named calcCharges() to calculate and return the parking charges for the customers. The company charges a RM1.00 minimum fee to park for up to one hour. An additional RM0.50 will be charged for each hour exceeding the first one hour. The maximum charge for any given 24-hour period is RM10.00. Assume that no car parks for longer than 24 hours at a time.

- Write a void function named calcTotal() to calculate the total charges for all the customers.

- Write the main program that allows the user to input number of customers and the hours parked for the customers. The program should use the function calcCharges()above to calculate the parking charges for each customer and function calcTotal() above to calculate the total charges for all the customers.

- Finally, your program should output the parking charges for each customer and the total charges for all the customers. Use the appropriate parameters to pass values in and out of functions.


Write a complete C++ program that uses a while loop to perform the following:  Input scores for CSC126 exam for the students enrolled in CSC126 course. User has to input number of students.  Find and display the total of the scores.  Find and display the highest and lowest scores.  Calculate and display the average of the scores.  Count and display how many students earned scores above and equal to 50 marks.  Count and display how many students earned scores below 50 marks. 


You are requested by a SuperStore (Spar) in Soshanguve to calculate it’s earning for the week (the

store opens the entire week) and determine the day with the highest and lowest earnings. The

Store comprises of two sections namely the Food section and the Liquor store.

Your C++ program should prompt the total sales for each section for each day and store the

total sales for the day into an array. At the end of the week It should display a report for

Management for the total sales for that week, the day the lowest sales and the day with the

highest sales were recorded. Refer to below screen shot for sample Input and Output.


Write python program
To print sum of non primes In the given N numbers.the numbers which are not primes considered as non primes in nested loops topic..
The first line of input will contain
positive integer (N).
The following N lines will contain an integer in each line.
You are requested by a SuperStore (Spar) in Soshanguve to calculate it’s earning for the week (the store opens the entire week) and determine the day with the highest and lowest earnings. The Store comprises of two sections namely the Food section and the Liquor store. Your C++ program should prompt the total sales for each section for each day and store the total sales for the day into an array. At the end of the week It should display a report for Management for the total sales for that week, the day the lowest sales and the day with the highest sales were recorded. Refer to below screen shot for sample Input and Output

You are given a string, write a program to find whether the string is palindrome or not.

Note: Treat uppercase letters and lowercase letters as same when comparing letters. Ignore spaces and quotes within the string.

In the given example, the string No lemon no melon is a palindrome as we are ignoring spaces. So, the output should be True.


God's Dog and the output should be True

Was it a cat I saw? so the output should be False




LATEST TUTORIALS
APPROVED BY CLIENTS