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

Write a program that accepts sales made by 5 sales reps for 4 months that they have been selling the company’s products.
The program should then find:
A) The total sales for the 4 months.
B) Total sales for each sales reps for the 4 months
C) Total sales per month.
D) The highest and lowest sales for Each sales rep and for each month
Suppose the sequential file ALE.TXT contains the information shown in Table 1.1. Write a program to use the file to produce the Table 1.2 in which the baseball teams are in descending order by the percentage of games won. Note : A batting average can be displayed in standard form with FormatNumber(ave, 3, vbFalse). Table 1.1 American League East games won and Lost in 2002. Team Won Lost Baltimore 67 95 Boston 93 69 New York 103 58 Tampa Bay 55 106 Toronto 78 84 Table 1.2 Final 2002 American League East standings. American League East Team Won Lost Percentage New York 103 58 0.640 Boston 93 69 0.574 Toronto 78 84 0.481 Baltimore 67 95 0.414 Tampa Bay 55 106 0.342
Code a program to calculate the time in minutes for someone to cut a yard. Input the length and width of the yard in feet. Input the length and width of the house in feet. Subtract the area of the house from the area of the yard to determine the amount of grass to be cut. Using 2 square feet per second as the rate at which you can cut the grass (set this up as a constant), determine how long it will take someone to mow the lawn, in minutes.
The program should print:
Length and width of yard
Length and width of house
Area to be cut in square feet
Time to mow the yard in minutes

Input data: (run three times)
Yard - 1500 X 1600 feet
House - 500 X 700 feet

Yard – 4850 X 6000
House – 1000 X 2000
Write C a program that accepts sales made by 5 sales reps for the 4 months that they have been selling the company's products. The program should then find the total sales for 4 months, total sales for each sales rep, and total sales per month. The highest and lowest sales for each sales rep and for each month.
calculations.
A number is called perfect if the sum
of its divisors is equal to the original number. A number is
called deficient if the sum of its divisors is less than the
original number. A number is called abundant if the sum
of its divisors is more than the original number. Write a
program that answers the following questions: What
numbers below 5000 are perfect? What odd numbers
below 5000 are abundant? What are the relative
proportions of deficient, abundant, and perfect numbers?
5000 should be in a global constant.
you are to write and implement a C++ program to implement two search algorithms (linear search and binary search) on randomly generated integers stored in vectors.

• void Vectors ( vector < int >& v1, vector < int >& v2, int s1, int s2 ) : Fills the elements of vectors v1 and v2 with random numbers, generated by two sets of pseudo-random numbers with the seed values s1 and s2, where s1 is for v1and s2 is for v2. To initiate a random number generator (RNG) with the seed value seed, execute the system function srand ( seed ) (only once), and to generate a random integer in the range [ LOW = 1, HIGH = 1000 ], execute: rand ( ) % ( HIGH – LOW + 1 ) + LOW.

• bool linearSearch ( const vector < int >& v, int x ) : A linear search algorithm, where x is the searched item in vector v. It simply starts searching for x from the beginning of vector v to the end, but it stops searching when there is a match. If the search is successful, it returns true; otherwise, it returns false. To implement this routine, simply call
Three integer numbers (x,y,z)are known as Paty Triple if the three numbers satisfy the following criterion:

X^2 + Y^2 = Z^2

The first few triples are shown below.

Count X Y Z

1) 3 4 5
2) 5 12 13
3) 6 8 10
4) 7 24 25
5) 8 15 17


The program should generate all such numbers where X and Y are in the range 1 to 100 using the following guidelines:

Use a loop to generate the value for X in the range 1 to 100.
Now,use a nested loop to generate the values for Y. Your loop should not generate duplicates- for e.g.,(3,4,5) and (4,3,5) are the same.
Calculate the sum of the squares of the value X and Y.
Using the Math.sqrt method.calculate the square root of the above sum.The Math.sqrt method returns a double type.(For e..g, Math.sqrt(13) would return 3.6055…)
Cast the above double value to an integer,say Z. Now,check if the square of this integer is the same as the value from step (c)
If the
how to add category to this program . like asking choose food : or choose drinks

#include <stdio.h>
#include <conio.h>
#include <stdlib.h>

int friedchicken=0;
int pizzapie=0;
int spaghetti=0;
int frenchfries=0;
int coke=0;
int pineapplejuice=0;
int icetea=0;
int water=0;
int q1,q2,q3,q4,q5,q6,q7,q8;



main()

{
clrscr();
int order;

char a;

gotoxy(35,4);
printf("MENU\n\n");
textcolor(BROWN);
gotoxy(20,7);
cprintf("[1] Fried Chicken\n");
textcolor(LIGHTRED);
gotoxy(20,8);
cprintf("[2] Pizza Pie\n");
textcolor(RED);
gotoxy(20,9);
cprintf("[3] Spaghetti\n");
textcolor(YELLOW);
gotoxy(20,10);
cprintf("[4] French Fries\n");
gotoxy(20,11);
textcolor(DARKGRAY);
gotoxy(40,7);
cprintf("[5] Coke\n");
textcolor(LIGHTGREEN);
gotoxy(40,8);
cprintf("[6] Pineapple Juice\n");
textcolor(LIGHTCYAN);
gotoxy(40,9);
cprintf("[7] Ice Tea\n");
textcolor(WHITE);
gotoxy(40,10);
cprintf("[8] Water\n");
gotoxy(42,12);
printf("\nEnter your order:");
scanf("%d", &order);
switch(
Divide 0001010001001001 (BCD) by (1001)2 and express the result in octal equivalent .
Help me with my code so if the tortilla chips is checked it should display its extras cost and description.

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

class MyProgram extends JFrame implements ActionListener{
public JCheckBox bp,tchips,csoup,cpasta,
gbread;
public JTextField itemcost;
public JTextArea itemdesc;
public JLabel idesc,icost,extras;
public MyProgram(){
Container pane=getContentPane();
pane.setLayout(null);

pane.add(extras=new JLabel("Extras"));
extras.setBounds(34,50,70,20);
pane.add(bp=new JCheckBox("Baked Potato"));
bp.setBounds(30,80,150,20);
bp.setOpaque(false);
//baked potato description: oven baked potato halves
//item cost: $4.00
pane.add(tchips=new JCheckBox("Tortilla Chips"));
tchips.setBounds(30,110,150,20);
tchips.setOpaque(false);
//Tortilla Chips description: light & crispy corn chips
//item cost: $10.90

pane.add(csoup=new JCheckBox("Chicken Soup"));
csoup.setBounds(30,140,150,20);
csoup.setOpaque(false);
//chicken soup description: with
LATEST TUTORIALS
APPROVED BY CLIENTS