Write a for loop to print all NUM_VALS elements of array hourlyTemp. Separate elements with a comma and space. Ex: If hourlyTemp = {90, 92, 94, 95}, print:
90, 92, 94, 95
Your code's output should end with the last element, without a subsequent comma, space, or newline.
In: Computer Science
Please assist me to choose the right answer
1. You have just completed a clean installation of Windows 7 and have removed the installtion DVD from the drive. When you restart the system you receive the following error message , "Can't find bootable device." which of the following would you do to correct the problem?
a. Reinstall the DVD driver
b. Check Device Manager
c. Change the BIOS boot sequence
d. Look at Event viewer logs
2. Your PC displays the message “No system Disk or Disk Error”. Which of the following will produce this result?
a. The hard drive partition was not activated
b. The system file was not transferred to the hard drive
c. The CMOS lost the hard drive configuration. d. The system was not shut down properly
In: Computer Science
Calculate average test score:
Write a C++ program that calls a function to pass array of test scores of students and calculates the average test scores for each student. Let the user enters 2 students’ test scores for three classes (use two dimensional array). Write another function to pass array of test scores and average to display the test scores for each student and display the average of the test scores for each student as well. So you need to write two functions (one for function to pass array of test scores and average to display the test scores for each student and another for display the average of the test scores for each student as well. ) . You cannot use global variable.
Add version control and write proper comments with a few blank lines & indentations in order to improve your programming style.
Test scores should be between 0-100 (data Validation).
In: Computer Science
LetsVacuum, a family-owned manufacturer of high-end vacuum cleaners, has grown exponentially over the last few years. However, the company is having difficulty preparing for future growth. The only information system used at LetsVacuum is an old accounting system. The company has one manufacturing plant located in Selangor; and three warehouses, in Johore, Kedah, and Trengganu. The LetsVacuum sales force comprises only Malaysian nationals, and the company purchases about 25 percent of its vacuum parts and materials from a single overseas supplier. You have been hired to recommend the information systems LetsVacuum should implement in preparing for future growth.
1. In your own terms,
a. Identify and briefly describe each of the key
business functions of LetsVacuum.
b. Describe an example of the company’s business process either in any of these functional areas or that is cross-functional in nature. Use diagrams whenever possible to support your description.
In: Computer Science
Using C++ and using a boolean variable with local scope to control the looping structure:
How do I create a program that will simulate a game of craps with the below qualification:
Containing two functions -an int rollDice() function that will simulate the rolling of two dice and the main function. When called the roll Dice() function will generate two random numbers between 1 and 6 inclusive, add them, and return the sum as the integer variable “point”. The function will also output the value of the “roll” of each digital die and the value of “point” to cout. Selection and looping structures in the int main() function will determine the impact of each roll (win, lose, or roll again) on the game, print the results, and continue the game if necessary.
In: Computer Science
Create a new public static method called ‘isLatinSquare’ that passes in a two-dimensional array. This new method will return ‘true’ if the passed array is a Latin Square. ** SHOULD only be 1 or 2 lines of code
In: Computer Science
c++ language, using Xcode
Suppose the membership at a fitness club is $500 for individual, $800 for couple and $1200 for 4 people. Every month, the manager at the club says that guests will get discounts for one service per month. He provides you with the list of services that will get a discount:
Your program will be reading in a file which contains a list of services at a fitness club. The discount is determined by the type of service. For example, the file is as follows:
Cafe: Smoothies
SPA: Hair and Skin
Training: 90 day challenge
Aquatics: Kids free training session
Your program should read this file and offer this discount:
If the service is Cafe, then discount is 1% of annual fitness club fee.
If the service is SPA, then discount is 10% of the annual fitness club fee.
If the service is Training, then discount is 15% of the annual fitness club fee.
If the service is Aquatics, then no discount, but program should only offer it for the family memberships.
Your program should ask the user what type of membership they have. Based on the type of membership, your program should calculate the dollar amount discount per service and list all applicable services and benefits for that user.
Your program should be reading the file in and calculating the benefits based on the type of membership. Your program should also randomly pick among the 4 discounts or 3 depending on the type of membership and display which discount the member gets for this month.
In: Computer Science
At a university, students are assigned a system user name, which is used to log into the campus computer network system. As part of your internship with the university's IT department, your assignment is to write the code that generates system user names for students.
You will use the following logic to generate a user name:
Get the first three characters of the student's first name. (If the first name is less than three characters use the entire first name.)
Get the first three characters of the student's last name. (If the last name is less than three characters use the entire last name)
Get the last three characters of the student's ID number. (If the ID number is less than three characters, use the entire ID number.)
Concatenate the three sets of characters to generate the user name.
For example, if a student’s name is Yogi Bear, and his ID number is T0017258, his login name would be YogBear721.
In main, obtain the student’s first name, last name and ID number, then call a function named get_login_name that accepts the student's first name, last name, and ID number as arguments and returns the student's login name as a string.
Next, in main, ask the student to generate a password then call a function to verify that it is correct. Passwords must adhere to the following rules:
A valid password must be at least seven characters in length,
Must have at least one uppercase letter, one lowercase letter, and one digit.
python programme
In: Computer Science
Input
No. of triangle : 5
Area of triangle 1: 12.00
Area of triangle 2: 14.14
Area of triangle 3: 14.00
Area of triangle 4: 7.31
Area of triangle 5: 17.32
Area of triangle 6: 14.14
Output:
Triangle 5 has the largest area: 17.32
If i have to save those area (input) into array form. How can i compare and find out which triangle with the largest area.
In: Computer Science
Write a python program that uses a conditional loop to ask the user for distance and gallons and calculates the MPG. The program should store data in a text file as shown below: Distance Gallons MPG 225 17 13.24 1374 64 21.47 2514 79 31.82
In: Computer Science
True or False. Explain Briefly.
(9). If L1 and L2 are not in D, then L1 - L2 cannot be regular.
(10). If L1 and L2 are not in D, then L1 union L2 cannot be in D.
(11). Every infinite language has a subset that is not in D.
(12). If not H were in D then every SD language would be in D.
In: Computer Science
Question 1) Identify the type of bad smells and refactor the given code.
1. Code 1:
public double sumSquaresArea ( L1, L2 )
{
area1 = smallSquareArea(L1);
area2 = bigSquareArea(L2);
return area1+area2
}
public double smallSquareArea ( L1)
{
area = L1 * L1;
return area;
}
public double bigSquareArea ( L2 )
{
area = L2 * L2;
return area;
}
2. Code 2:
class Student
{
private string name;
public void getStudentMarks ( );
}
class Course_Marks
{
private int course_id;
private string semester;
public void getStudentMarks ( );
}
3. Code 3:
public void accountInfo(string account_title, string account_number, string account_type)
{
// Generate Monthly Statement
if(account_type == “Current”)
{
// do something
}
else if (account_type == “Saving”)
{
// do something
}
else
{
//do something
}
//Account information
System.out.println(“***** Account Information *****”);
System.out.println(“Account_Title : ” , account_title);
System.out.println(“Account Number : ” , account_number);
System.out.println(“Account_Type : ” , account_type);
System.out.println(“Monthly Statement : ”, monthly_statement );
}
In: Computer Science
This should be written in C++.
Create a class with the name "Student".
private data members of the Student class should include:
int - rollno (roll number or id number of student)
string - name (name of student)
int - alg, datastruct, architect, proglang (hold scores out of 100 for these 4 classes)
float - per (average score of 4 classes above)
char - grade (letter grade based on per.. example 90 is an A)
public member functions of the Student class should include:
getdata() (function to accept data from user
showdata() (function to show data on screen
Create a constructor that initializes all int to 0, float to 0.0, char to ' ', name = "NoName".
Prompt the user for a valid class size.
Prompt the user for student data.
Store students in a vector.
Display student data including students average score and letter grade.
The following is an example:
Enter size of class: 0 Invalid class size Enter size of class: 1 Enter the roll number of student: 45 Enter The Name of student: Trish Duce Enter the grade in Algorithms out of 100: 88 Enter the grade in Data Structures out of 100: 94 Enter the grade in Architecture out of 100: 98 Enter the grade in Programming Languages out of 100: 92 Roll number of student: 45 Name of student: Trish Duce Grade in Algorithms: 88 Grade in Data Structures: 94 Grade in Architecture: 98 Grade in Programming Languages: 92 Percentage of student is: 93 Grade of student is: A
In: Computer Science
What was the earliest and what was the latest time of the day we sold a product on 14.04.2015? Use column A from tab Data and explain how you got to your result
Please Tell me the steps on how this would be solved using Excel. Note that this is not the full excel data but just a small sample.
| date_sign_up | customer_id | product_name | marketing_channel | City |
| 4/17/2015 13:11 | 71041 | Classic - 3 meals per week for 2 people | Search Engine Marketing | San Diego |
| 4/14/2015 11:32 | 103289 | Classic - 3 meals per week for 2 people | Newsletters (internal) | Los Angeles |
| 4/14/2015 9:53 | 107746 | Classic - 3 meals per week for 2 people | Newsletters (internal) | Los Angeles |
| 4/14/2015 16:08 | 157441 | Classic - 3 meals per week for 4 people | Newsletters (internal) | San Francisco |
| 4/18/2015 8:04 | 158646 | Classic - 3 meals per week for 2 people | Newsletters (internal) | San Diego |
| 4/18/2015 15:41 | 178843 | 3 Meals (vegetarian) for 2 people | TV / Radio Advertising | Miami |
| 4/15/2015 9:45 | 179297 | Classic - 3 meals per week for 2 people | Newsletters (internal) | Philadelphia |
| 4/15/2015 8:21 | 182439 | 3 Meals (vegetarian) for 2 people | Newsletters (internal) | San Francisco |
| 4/17/2015 6:57 | 186180 | Classic - 3 meals per week for 2 people | Partnership Marketing | San Diego |
| 4/19/2015 20:39 | 190396 | Classic - 3 meals per week for 2 people | TV / Radio Advertising | Miami |
| 4/14/2015 10:26 | 194229 | Classic - 3 meals per week for 2 people | Search Engine Marketing | Los Angeles |
| 4/13/2015 20:17 | 194353 | Classic - 3 meals per week for 2 people | Search Engine Marketing | Washington |
| 4/15/2015 14:43 | 200286 | Classic - 3 meals per week for 2 people | Search Engine Marketing | Philadelphia |
| 4/16/2015 7:35 | 201307 | Classic - 3 meals per week for 2 people | TV / Radio Advertising | 1San Diego |
| 4/15/2015 6:54 | 203319 | Classic - 3 meals per week for 2 people | Newsletters (internal) | San Francisco |
| 4/14/2015 8:35 | 205233 | Classic - 3 meals per week for 2 people | TV / Radio Advertising | Los Angeles |
| 4/13/2015 12:08 | 205322 | Classic - 3 meals per week for 2 people | Newsletters (internal) | Chicago |
| 4/16/2015 5:04 | 205611 | Classic - 3 meals per week for 2 people | TV / Radio Advertising | San Diego |
| 4/15/2015 12:17 | 208066 | 3 Meals (vegetarian) for 4 people | Newsletters (internal) | Philadelphia |
In: Computer Science
The purpose of this assignment is to allow you to understand scenarios and customer experiences in which AI and RPA can be used. You might need to do some additional research on specific technologies related to AI to complete the assignment.
First, select a current process that you face in your daily life. It might be something you face in your work, or at school, or in your personal life. For this process, complete the following:
1. Select a current process that you face in your daily life. It might be something you face in your work, or at school, or in your personal life. Use one or two paragraphs of text to explain the context for the process.
2. Create a simple process diagram describing this process. You can simply use boxes and arrows to identify the steps. Highlight which of those steps could be sources of “pain points” (that is, frustrate people interacting with the processes) and explain why. You will need to upload a file for this prompt.
3. Create a new version of the process where RPA and AI could be used to decrease (or even eliminate) the pain points. Your new process model should highlight the steps in which RPA and/or AI are used. For each use of RPA or AI technologies explain what that technology does and how you are using that specific technology. For each use of RPA or AI technologies explain how that technology would decrease (or even eliminate) the pain point.
In: Computer Science