Questions
Using Python programming, make a form that allows user to login to a modest web application...

Using Python programming, make a form that allows user to login to a modest web application that has a password and username with a file that has validated user. Once logged in, a formal greeting and the choice to change password should be available. The password should be strong(NIST SP 800-63B). All failed logins should be logged w/ date and Time. (Ex. 6 failed logins in 20 min dated 12 Jan 2020.

In: Computer Science

Use C to Write a program that takes the array reverse_me and reverses the order of...

Use C to Write a program that takes the array reverse_me and reverses the order of the elements (i.e., the first element and the last element are swapped, the second element and the second-to-last element are swapped, etc.). Store the reversed array in reversed_arr. Finally, print out the reversed array as a string.

In: Computer Science

PLEASE USE ONLY FLOWGRITHM!!! Design a modular program that accepts as input 20 numbers between 0...

PLEASE USE ONLY FLOWGRITHM!!!

Design a modular program that accepts as input 20 numbers between 0 and 100 (including 0 and 100). The program should store the numbers in an array and then display the following information:

The lowest number in the array

The highest number in the array

The total of the numbers in the array

The average of the numbers in the array

Your program should consist of the following:

Module main. Accepts input of numbers and assigns them to an array. The array is traversed in order to find the highest number, lowest number, total and average of the numbers.

Module showStats. Displays the highest number, lowest number, total and average of the numbers.

Please Show the Flowgorithm used!!!

In: Computer Science

Please submit 1) the source code (.java file), and 2) the screenshot of running results of...

Please submit
1) the source code (.java file), and
2) the screenshot of running results of each question.

  1. (Factorials) Write an application that calculates the factorial of 20, and display the results. Note: 1) The factorial of a positive integer n (written n!) is equal to the product of the positive integers from 1 to n. 2) Use type long.

  2. (Largest and Smallest Integers) Write an application that reads five integers and determines and prints the largest and smallest integers in the group. Use for loop.

In: Computer Science

Use a swift language in xcode software for the following code? 20 pts Create a class...

Use a swift language in xcode software for the following code?

20 pts Create a class called Polygon, this class will have:

a. Properties:

i. Number of sides

ii. Interior angles

b. Method

i. sides(), this will print to the console how many sides the polygon has

ii. interiorAngle(), this will calculate the interior angles and set it to the interior angles property

Create another class named Triangle that inherits from Polygon. This class will have to:

a. Properties:

i. Area

ii. Side length

b. Method i. calculateArea

In: Computer Science

write Java program has two classes ,( using Inheritance ) first class set ( id ,...

write Java program has two classes ,( using Inheritance )

first class set ( id , name ) and method output

second class ( id , name , Mark 1 , Mark 2 , Mark 3 )

method total , average , grade , results ( if the student pass or not ) , and output method

In: Computer Science

Use Java A pet shop wants to give a discount to its clients if they buy...

Use Java

A pet shop wants to give a discount to its clients if they buy one or more pets and at least five other items. The discount is equal to 20 percent of the cost of the other items, but not the pets.

Use a class Item to describe an item, with any needed methods and a constructor

public Item(double price, boolean isPet, int quantity)

An invoice holds a collection of Item objects; use an array or array list to store them. In the Invoice class, implement methods

public void add(Item anItem)
public double getDiscount()

Write a program that prompts a cashier to enter each price and quantity, and then a Y for a pet or N for another item. Use a price of –1 as a sentinel (i.e. -1 means all values have been entered). In the loop, call the addmethod; after the loop, call the getDiscount method and display the returned value.

In: Computer Science

Create an interface named Shippable with a method named getVolume and another named getWeight. Neither has...

Create an interface named Shippable with a method named getVolume and another named getWeight. Neither has parameters and both return a number

In: Computer Science

Use C to Write a program that "cuts" a deck of 52 playing cards. Given a...

Use C to

Write a program that "cuts" a deck of 52 playing cards. Given a cut position, the process of cutting the deck refers to taking all cards before the cut position and moving them to the end of the deck. The order of the cards is maintained. For example, if the deck is cut at position 25, the first 25 cards of the deck are moved to become the last 25 cards of the deck. The new first card in the deck is card 26, and the new last card of the deck is card 25.

The deck of cards is represented as a 52-element integer array, with values 1 through 52 representing the different cards. The initial population of the deck is done for you.

Your program should accept a single integer input, which is the cut position. If the input is less than 1 or greater than 52, your program should print "ERROR" and exit. Otherwise, after performing the cut, your program should print out the new deck, with one card value on each line.

In: Computer Science

Use Java Sample values from an experiment often need to be smoothed out. One simple approach...

Use Java

Sample values from an experiment often need to be smoothed out. One simple approach is to replace each value in an array with the average of the value and its two neighboring values (or one neighboring value if it is at either end of the array). Given a class Data with instance fields

private double[] values;
private double valuesSize;

implement a method

public void smooth()

that carries out this operation. You should not create another array in your solution.

In: Computer Science

I can not get the summary report to show in the output it just keeps running...

I can not get the summary report to show in the output it just keeps running after i enter the names, scores, and then / /. Can someone help me I am using codeblocks but I might be able to figure out even if you use another IDE>

This is my code

#include <iostream>

using namespace std;

int main()
{
string name;
double score =0;
int totalStudents = 0;
int A=0,B=0,C=0,D=0,F=0;
cout << "Enter student name" << endl;
cin >> name;

while (name!="//"){
cout << "Enter student score" << endl;
cin >> score;
if(score>=90){
A++;
cout<<name<<" "<<score<<" A"<<endl;
}
else if(score>=80&&score<90){
B++;
cout<<name<<" "<<score<<" B"<<endl;
}
else if(score>=70&&score<80){
C++;
cout<<name<<" "<<score<<" C"<<endl;
}
else if(score>=60&&score<70){
D++;
cout<<name<<" "<<score<<" D"<<endl;
}
else if (score>=0&&score<60) {
F++;
cout<<name<<" "<<score<<" F"<<endl;
}
cout << "Enter student name" << endl;
cin >> name;
totalStudents++;
}
cout << "Enter student name" << endl;
cin >> name;
cout << "Summary Report" << endl;
cout << "Total Students count " << totalStudents << endl;
cout << "A student count " << A << endl;
cout << "B student count " << B << endl;
cout << "C student count " << C << endl;
cout << "D student " << D << endl;
cout << "F students " << F << endl;
return 0;
}


This was the question

Topics

Loops

while Statement

Description

Write a program that computes the letter grades of students in a class from knowing their scores in a test. A student test score varies from 0 to 100. For a student, the program first asks the student’s name and the student’s test score. Then, it displays the student name, the test score and the letter grade. It repeats this process for each student. The user indicates the end of student data by entering two consecutive forward slashes ( // ) when asked for the student name. At the end, the program displays a summary report including the following:

·       The total number of students.

·       The total number of students receiving grade “A”.

·       The total number of students receiving grade “B”.

·       The total number of students receiving grade “C”.

·       The total number of students receiving grade “D”.

·       The total number of students receiving grade “F”.

The program calculates a student's the letter grade from the student's test score as follows:

A is 90 to 100 points

B is 80 to 89 points

C is 70 to 79 points

D is 60 to 69 points

F is 0 to 59 points.

Requirements

Do this exercise using a While statement and an If/Else If statement.

Testing

For turning in the assignment, perform the test run below using the input data shown

Test Run (User input is shown in bold).

Enter Student Name

Alan

Enter Student Score

75

Alan 75 C

Enter Student Name

Bob

Enter Student Score:

90

Bob 90 A

Enter Student Name

Cathy

Enter Student Score

80

Cathy 80 B

Enter Student Name

Dave

Enter Student Score:

55

Dave 55 F

Enter Student Name

Eve

Enter Student Score

85

Eve 85 B

Enter Student Name

//

Summary Report

Total Students count 5

A student count 1

B student count: 2

C student count 1

D student 0

F students 1

Sample Code

string name;

double score;

//Initias setup

cout << "Enter student name" << endl;

cin >> name;

//Test

while (name != "//")

{

    cout << "Enter student score" << endl;

    cin >> score;

    //more code here

    //Update setup

    out << "Enter student name" << endl;

    cin >> name;

}

//display summary report

In: Computer Science

Design, implement and verify a car buzzer that warns car passengers when the door is open...

Design, implement and verify a car buzzer that warns car passengers when the door is open or the seatbelt is not used whenever the car key is inserted in the ignition lock, written in VHDL code.

In: Computer Science

#include <stdio.h> const int DECK_SIZE = 52; int deck[DECK_SIZE]; int main(void) { /* Populate the deck...

#include <stdio.h>

const int DECK_SIZE = 52;

int deck[DECK_SIZE];

int main(void) {
/* Populate the deck */
for(int i = 0; i < DECK_SIZE; i++) {
deck[i] = i + 1;
}
  
/* Get the cut position as an integer input */
  
/* Verify that the input is valid */
  
/* Cut the deck */
  
/* Print the resulting deck with one element on each line */

return 0;
}

Write a program that "cuts" a deck of 52 playing cards. Given a cut position, the process of cutting the deck refers to taking all cards before the cut position and moving them to the end of the deck. The order of the cards is maintained. For example, if the deck is cut at position 25, the first 25 cards of the deck are moved to become the last 25 cards of the deck. The new first card in the deck is card 26, and the new last card of the deck is card 25.

The deck of cards is represented as a 52-element integer array, with values 1 through 52 representing the different cards. The initial population of the deck is done for you.

Your program should accept a single integer input, which is the cut position. If the input is less than 1 or greater than 52, your program should print "ERROR" and exit. Otherwise, after performing the cut, your program should print out the new deck, with one card value on each line.

Please use C language only. Please make it simple as this is an introductory C programming course

In: Computer Science

A museum's fee policy is that anyone who is either 12 and under or 65 and...

A museum's fee policy is that anyone who is either 12 and under or 65 and older receives free admission. Declare a boolean variable named freeAdmissionand set it based on the value in an integer variable age. To receive full credit you should only use one statement. Hint use boolean operators. in Java-Eclipes

In: Computer Science

In Python A child is required to use a booster seat in a car until the...

In Python

A child is required to use a booster seat in a car until the child is 9 years old, unless the child reaches the height of 59 inches before age 9. Which expression can be used to decide if a child requires a car seat or not?

a.

if age < 9 or height < 59:

b.

if age >= 9 or height >= 59:

c.

if age >= 9 and height >= 59:

d.

if age <= 9 and height <=59:

e.

None of the above

What conditions have to be true to make the following code display "B"?

if color == 'red':
    if style < 3:
        print('A')
    elif style < 5:
        print('B')
    else:
        print('C')
elif color == 'blue':
    print('D')

a.

color is 'blue' and style is 3

b.

color is 'red' and style is 6

c.

color is 'red' and style is 5

d.

color is 'red' and style is 4

e.

None of the above

What conditions have to be true to make the following code display "B"?

if color == 'red':
    if style < 3:
        print('A')
    elif style < 5:
        print('B')
    else:
        print('C')
elif color == 'blue':
    print('D')

a.

color is 'blue' and style is 3

b.

color is 'red' and style is 6

c.

color is 'red' and style is 5

d.

color is 'red' and style is 4

e.

None of the above

Which statement is equivalent to the following assignment?

x -= 2 + y

a.

x = 2 + y - x

b.

x = -(2 + y)

c.

x = x - (2 + y)

d.

x = x - 2 + y

e.

None of the above

Which of the following data values is best represented with a floating point variable?

a.

The speed of a snail.

b.

None of the other options

c.

The number of children in a classroom.

d.

The number of acorns in a tree.

e.

The number of pets in a house.

In: Computer Science