Write a program that is able to compute some operations on an integer. The program writes the value of the integer and writes the following menu :
1. Add 1
2. Multiply by 2
3. Subtract 4
4. Quit
The programs ask the user to type a value between 1 and 4. If the user types a value from 1 to 3 the operation is computed, the integer is written and the menu is displayed again. If the user types 4, the program quits. Students can use any type of Control Structure Selection and Looping to answer the question.
The sales manager at ITI Hub has asked you to design and implement a Windows application that will display the total sales made in there three regions in South Africa: Kwazulu-Natal, Gauteng and Western cape. The application should display the total sales of the company as well as the percentage that each region contributed to the total sales. It should show sales for 6 months
The Financial officer at RGI wants you to develop an application that will evaluate the company’s asset’s annual depreciation using the double-declining balance and sum-of-the years’ digit method. The interface provides text boxes for entering the asset cost and salvage value. It also provides a list box for selecting the useful life, which ranges from 3 to 20 years. The depreciation amounts are displayed in the list boxes.
Design a Windows application named Wallpaper App to calculate the number of single rolls of wallpaper required to cover a room
The sales manager at ITI Hub has asked you to design and implement a Windows application that will display the total sales made in there three regions in South Africa: Kwazulu-Natal, Gauteng and Western cape. The application should display the total sales of the company as well as the percentage that each region contributed to the total sales. Display the sales amounts with a Rand sign and no decimal places. Display the percentages with a percent symbol with no decimal places. The sales amounts for six months are shown in Figure 3. Create a windows application form for this project using the name ITI Hub regional sales. Store the sales amount in a two-dimensional array. Create a suitable interface with an image for the project and run the application
n = input().split()
d=[]
z = []
for i in n:
if (i.isdigit()):
if (int(i) > 0):
print(i)
z = z + [i]
c = n.index(i)
d.append(c)
d.sort(reverse = True)
for i in range(len(d)):
n[d[i]] = z[i];
m = ""
for i in n:
m = m + i + " "
print(m)what is wrong in this code, please explain it. sir
Design a Windows application named Wallpaper App to calculate the number of single rolls of wallpaper required to cover a room. There are four combo boxes having a drop down style. Display the range of values for the room’s length, width and height from 10 to 35 in the combo boxes while the value in the combo box for the roll coverage should range from 40 to 50 with an increment of 0.5.
Q1:
Write a Program in C++ which completes following requirements:
a. Create a class, having a static function printing some information
and invoke that method using scope resolution operator.
b. Try to access non-static data members from static method and
write in comments what happens.
c. Declare and initialize a static variable as counter in a function
(increment it in every call) and call it multiple times printing the
change in value
d. Write about your observations while making this assignment in a
word file about static variables and static methods.
Q1:
Write a Program in C++ which completes following requirements:
a. Create a class, having a static function printing some information
and invoke that method using scope resolution operator.
b. Try to access non-static data members from static method and
write in comments what happens.
c. Declare and initialize a static variable as counter in a function
(increment it in every call) and call it multiple times printing the
change in value
d. Write about your observations while making this assignment in a
word file about static variables and static methods.