Write a for loop to print all elements in courseGrades, following each element with a space (including the last). Print forwards, then backwards. End each loop with a newline. Ex: If courseGrades = {7, 9, 11, 10}, print:
7 9 11 10
10 11 9 7 #include <iostream>
using namespace std;
int main() {
const int NUM_VALS = 4;
int courseGrades[NUM_VALS];
int i;
for (i = 0; i < NUM_VALS; ++i) {
cin >> courseGrades[i];
}
/* Your solution goes here */
return 0;
}
Bohlale Clothing is located in a number of malls such as Maseru Mall, Pioneer Mall, Sefika etc . Each location
is identified by its location ID, address town/city, contact number and business type Business Type can be either
a store or a warehouse.
b) Bohlale employs many employees on different position, where each employee has a location, first name,
surname, title (salesman, buyer, receiver, and manager), address city/town contact number, fulltime or part time
and rate.
c) The main mandate of the store is to sell clothes and other dressing accessories. Each clothing product has a
unique ID, description, category (shirt, dress, trousers etc), gender (clothes for woman or man), manufacturer ID,
cost price and sales price.
d) Clothing in Bohlale store have varies sizes and colors. The store requires information on the size in which the
clothing item is manufactured together with the color.
Design a complete network infrastructure of an organization using Packet Tracer.
Configure and Document the configuration steps taking screenshot of any Unified Threat Management.
Implemen the following business rules in SQL database:
a) The purchase order value must never exceed M500 000. In instances where the purchase order surpasses M500
000 , a message should be displayed
b) The selling price must be greater than the unit buying price
c) Clothing with the same ID cannot be sold to two customers
d) A message should be displayed when stock levels are less than 10 for each product in stock
Make a loopable menu with the following options:
-Programs 1
-Programs 2
-Exit
The first menu must contain the following programs:
The second menu must contain the following programs:
It has been established that road accident is the number one killer in Ghana far exceeding that of HIV aids and COVID-19 put together. Most of the roads accidents are known to have been caused by driver negligence. There is currently no system in place to track offenses committed by drivers. Charles Saah of AiTSystem a software company advised that a system should be put in place to track the number of offenses committed by drivers. The system should be able to count the number of offenses committed by each driver and make the following recommendations.
Write a main program to:
Create two different appointment. The first appointment object is for patient “MayaMroueh” on “Thursday” at “13 pm”. The second appointment object is read from the user.
Write the code to check if the two appointments conflict in day and time. If so it prints a message “The two appointments are set for the same day and day”. And moves one of the appointments to the next day.
Write the code to display the appointments information using the method getApprointmentDetails
Case Study
Due to COVID-19 regulations Bohlale Clothing has decided to implement an online system to manage purchasing,
inventory and sales of its products. You have been requested to create a functional database to ensure that the following
information is captured:
a) Bohlale Clothing is located in a number of malls such as Maseru Mall, Pioneer Mall, Sefika etc . Each location
is identified by its location ID, address town/city, contact number and business type Business Type can be either
a store or a warehouse.
b) Bohlale employs many employees on different position, where each employee has a location, first name,
surname, title (salesman, buyer, receiver, and manager), address city/town contact number, fulltime or part time
and rate.
c) The main mandate of the store is to sell clothes and other dressing accessories. Each clothing product has a
d) List new stock received on a given date (order by branch
write a program Construct an ADT (any of your choice but make it unique) with appropriate data members and member functions (CRUD for now). Your implementation will be purely abstraction based i.e. you will make separate files for header, implementation and driver class. In your driver class you will have a list corresponding to the ADT. You will test your program for all list operations. show complete output in screen.
### Functional Interfaces and Lambda Expressions
------------------------------------------------
Use the below classpublic class LambdaSample { private static List<String> names=new ArrayList<>();
private static Map<String,String> studentDetails;
static {
names=Arrays.asList( "Anju","Raju","Arun","Vikram"); studentDetails=new HashMap<String,String>();
studentDetails.put("Anju","Delhi");
studentDetails.put("Raju","Chennai");
studentDetails.put("Arun","Delhi");
}
}Implement below static methods and access them from main method . Use Java8 functions1. displayNames()
--should displayall the names 2. findByName(String name)
-- check whether the given name exists in the list3. getAllcount()
-- count the number of person whose name starts with "A"4. getStduentData()
-- use biconsumer and print the student details5. showMaxlength()
-- display the list of names which is length to be 4 characters