Fill in the blanks to complete the code that prints the string:
“bccbccbccaaaaaaaaaabccbccbccaaaaaaaaaa”
repeat(B1){
repeat(B2){
cout<<"b";
repeat(B3){
cout<<"c";
}
}
repeat(B4){
cout<<"a";
repeat(2){
cout<<"a";
}
}
}
Determine the distance between point (x1, y1) and point (x2, y2), and assign the result to pointsDistance. The calculation is:
Distance=(x2−x1)^2+(y2−y1)^2
Ex: For points (1.0, 2.0) and (1.0, 5.0), pointsDistance is 3.0.
Create a data sheet in MS Access which includes Employee ID, Employee Name, Father Name, Gender (Male, Female), Age, Date of Joining (dd-mm-yyyy), Address, Cell number (0300-0000000) and City (Karachi, Islamabad, Lahore).
'''
(a) Ask the user to enter 5 integer values between 1 and 50. Create a simple bar graph using the character of your choice.
Hint: You may want to try to use a loop within a loop (a nested loop). Don't forget to indent properly! (2A)
For example: If the user were to enter 3, 1, 6, 2, 5, the output might look like:
###
#
######
##
#####
Extension:
(d) [challenge] Make the bar graph horizontal (2T)
Create a program that calculates your daily driving cost, so that you can estimate how much money could be saved by carpooling (car-sharing), which also has other advantages such as reducing carbon emissions and reducing traffic congestion. The program should input the following information and display the user’s cost per day of driving to work:
a) Total miles driven per day.
b) Cost per gallon of gasoline.
c) Average miles per gallon.
d) Parking fees per day.
You have recently graduated from college and are hired as an administrative assistant at a local bicycle repair shop. Your manager asks you to create an inventory list of the bicycle parts sold in the shop. He thinks he might be losing money because he is charging too little for his parts. He wants to be able to compare his shop's prices with the prices of the nearest bike shop.
a) What software could you use to compile an inventory list to keep track of bicycle parts, your prices, quantity, and the competition's price efficiently?
A multinational company opens multiple branches all over that Pakistan. If you are hired to design the networking from the company, what type of network you will select? What type of network topology will be suitable for the linking different branches or different department inside the single company branch? List down the network equipment you may require during this implementation.
Create a New ASP.NET Core MVC Web application. Create a New Database in App_Data Folder WPLTASKDB. Create Three Tables in your Database
Patient -> PatientID (PK), PatientName, Age, DateofAdmission
PatientDetail -> PatientId(PK), DiseaseID(PK)
Disease -> DiseaseID (PK), DiseaseName, Medications, Symptoms
Create Three Controller in your Website, by using Patient Controller your Application should be able to Add, Update, Delete and View All Patient, by using Disease Controller your Application should be able to Add, Update, Delete and View All Disease, by using PatientDetail Controller your Application should be able to Add, Update, Delete and View All PatientDetail
Create a New MVC Web application. Create a New Database in App_Data Folder WPLTASKDB. Create Four Table in your Database
Student -> StudentID (PK), Name, ClassID(FK), CampusID(FK)
Teacher -> TeacherID (PK), TeacherName, ClassID (FK), Qualification
Campus -> CampusID (PK), CampusName Class -> ClassID(PK), ClassName
Create Four Controller in your Website, by using StudentController your Application should be able to Add, Update, Delete and View All Students, by using TeacherController your Application should be able to Add, Update, Delete and View All Teachers, by using CampusController your Application should be able to Add, Update, Delete and View All Campus, by using ClassController your Application should be able to Add, Update, Delete and View All Classes
Write the program in python language
Scenario is
A fair has come to the city and the price of the entry tickets are as below:
AGE TICKET PRICE
Below 6 years Rs 20/-
6 to 9 years Rs 30/-
10 to 17 years Rs 50/-
18 years and above Rs 100/
They are giving a discount of 5% on their ticket price as part of their anniversary.
(So, discount amount= 0.05*ticket price)
Write a program to:
● Accept the age of the customer and calculate the total amount of the ticket after discount.
● Finally display the age and total amount calculated after discount with appropriate message.