Homework Help for Computer Science

2,819 results

Today, computing is an integral and a very visible aspect of our everyday life. Learn the essentials of the design and development of computing sofware and hardware

For unlimited access to Homework Help, a Homework+ subscription is required.

Avatar image
areebaamjad asked for the first time
Avatar image
ashwanth1311 asked for the first time
in Computer Science·
24 Apr 2023

Explanation about Python theory??

Introduction to Python Programming Language

Are you ready to learn Python? Join us on our Learn Coding Channel!

 

Python is a high-level, interpreted programming language used for web development, data analysis, artificial intelligence, and more. It was first introduced in 1991 by Guido van Rossum, and has since become one of the most popular languages among developers.

 

Installing Python

Before we can start coding in Python, we need to install it on our system. Here's how:

 

Go to the Python website

Download the appropriate version for your system (Windows, Mac, Linux, etc.)

Run the installer

Follow the instructions to complete the installation

Getting Started with Python

Now that we have Python installed on our system, we can start coding! Python has a simple syntax, which makes it easy to learn for beginners. Here are a few basic commands to get you started:

 

print("Hello, World!") - This command will print the text "Hello, World!" to the console

x = 5 - This command will create a variable called x and assign it the value of 5

if x == 5:

print("x is equal to 5") - This command will print the text "x is equal to 5" to the console if the value of x is 5

These are just a few basic commands in Python. As you continue to learn, you'll discover many more powerful functions and libraries that will help you code even more effectively.

 

Applications Limitations:

 

Python is a general-purpose language used everywhere.

It is dynamically typed.

Python is used to develop software that can be written with Python.

Python has been described as a 'general-purpose' language for more than 30 years.

It was designed for the purpose of developing software that could be written in the Python language.

Python's creator says the language is a "general-purpose purpose-built" language that is designed to work in the context of the world.

Python is now available to developers to create software that uses Python for the first time.

It's a 'safely typed' language that can work in its own way of working in the language.

It has no easy-to-read software that has been developed in the way of developing in the past.

Python has a built-in, language-free software that works in its native language.

The language-free source software is easy to source and is available in the region.

It's free source, and it'll be available to use.

Python is a safe source software preventing software distributors and providers.

Python has been available to provide software resource, software machine-based systems, and software distributors for Python users.

Python-preferred software users are software makers, language providers, and Python-based software savvy software predominations.

Python is a reliable-driven and blocked software bi-prepared in a distributed software generational bundle.

About Guido van Rossum's New Book

Guido van Rossum's new book is written in a very lowkey manner yet developed at a high level, making it easy to read and understand Python. It's named after a comedy group and is available in the UK and Australia for £25.99.

 

Python program brings a variable to creation;

Guido van Rossum's new book is a great resource for understanding Python;

The book is available in the UK and Australia for £25.99.

Guido van Rossum is the author of the book which was released in October.

Avatar image
brittanycowbell asked for the first time

Please show examples of the output window

Write a program using studentdata.txt Download the file and paste it into your NetBeans project at the root of the project This file contains hundreds of records where each record contains a student's S-number and their gpa. Your program must read the id number and gpa and transfer the data into two separate arrays. You can assume there will never be more than 1000 students in the file. Use two additional arrays to complete the requirements of the program create a simple diagram called a histogram to show how many students fall into each of 8 different categories showing how data is distributed across a range. For each student in the input file displaying their S-number, gpa, and class rank. You will have to calculate their class rank. the data contains grade point averages, the histogram will include 8 categories of gpa: 0.0 <= gpa < 0.5, 0.5 <= gpa < 1.0, 1.0 <= gpa < 1.5, 1.5 <= gpa < 2.0, 2.0 <= gpa < 2.5, 2.5 <= gpa < 3.0, 3.0 <= gpa < 3.5, 3.5 <= gpa <= 4.0 the histogram might look like is: 0.0 to 0.49 (48) **** 0.5 to 0.99 (82) ******** 1.0 to 1.49 (65) ******* The number in parentheses represents the total number of students that fall within that category. Each * represents 10 students rounded to the nearest 10. display the student id number, the gpa, and the student’s class rank. The class rank is indicating the number of students who have a better gpa if the student's rank is 27, it means that there are 26 other students who have a gpa that is better than the student with rank 27. output all the students in the order they are in the input file such as : S316542   3.45    27   S29463 1.42     801     S969870     2.75      T64 with 8 others the rank for the last student indicates T64 which means that there are 63 students with a gpa better than this student. It also indicates that this student's gpa of 2.75 is the same as 8 other students program should also work with any input file assuming it will never contain more than 1000 students. project folder must use my input file when submitting the program

Avatar image
reginaldrejo asked for the first time
in Computer Science·
21 Apr 2023

Nametso is a News Reporter for Sunshine News Network, which means that her smartphone is very important to her when working on field. It is also her communication device and she uses it for online banking via an App that requires her to turn on location. Sometimes she works at the office and uses the work computer to access her emails, transfer field work material from her smartphone, blog on her private cooking website, and browse general things of interest on the Web. She also does community news production for a non-profit organization for sheltered women. The role involves posting on the organization’s social media page and administering their WhatsApp group. — All of which is available to the public.

Lately, Nametso’s has been having suspicions that her ex-boyfriend Maxwell is stalking her, but she is not yet sure if it is him. She received 40 email messages from an email address [email protected] pleading with her to reconcile, some were threatening. “YouaremineXYZ’ appeared as a fake profile on a social media application requesting for friendship, and Nametso declined it. The profile later commented on one of Nametso’s timeline stories with a nude picture of her. Then the relentless phone calls came with hidden caller identities and WhatsApp messages from an unknown number. As Nametso’s friend and having established a new private investigation firm called Gaborone Cyber Detectives (GCD), how can you help her gather evidence that can open a strong case of cyber stalking to the police?

  • How will you go about collecting the evidence for a compelling case allegation?
  • Develop a format for a digital forensic report, by listing and describing all the basic elements that will be used in your new establishment, GCD (the type of format that is suitable for a court of law).
in Computer Science·
20 Apr 2023

This question got resolved

I put in his code

void getUID() {
  FirebaseAuth auth = FirebaseAuth.instance;
  User? user = auth.currentUser;
  if (user != null) {
    setState(() {
      uid = user.uid;
    });
  }
}

When I run the flutter program I now get this error  msg

======== Exception caught by widgets library =======================================================
The following assertion was thrown building TaskListPage(dirty, state: _TaskListPageState#61ebf):
a document path must be a non-empty string
'package:cloud_firestore/src/collection_reference.dart':
Failed assertion: line 116 pos 14: 'path.isNotEmpty'

When the exception was thrown, this was the stack: 
#2      _JsonCollectionReference.doc (package:cloud_firestore/src/collection_reference.dart:116:14)
#3      _TaskListPageState.build (package:todolist/pages/tasklist/tasklist.dart:75:16)
#4      StatefulElement.build (package:flutter/src/widgets/framework.dart:5080:27)
#5      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4968:15)
#6      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)
#7      Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)
#8      ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4950:5)
#9      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5124:11)
#10     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4944:5)
#11     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3953:16)
#12     Element.updateChild (package:flutter/src/widgets/framework.dart:3676:20)
#13     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)
#14     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)
#15     Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)
#16     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2743:19)
#17     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:863:21)
#18     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:381:5)
#19     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1289:15)
#20     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1218:9)
#21     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1076:5)
#22     _invoke (dart:ui/hooks.dart:145:13)
#23     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:338:5)
#24     _drawFrame (dart:ui/hooks.dart:112:31)
(elided 2 frames from class _AssertionError)
====================================================================================================

Screenshot of my emulator

Avatar image
thangarasu5677 asked for the first time

you're going to see 1 on the terminal because the index is 1.

print("Hello World"[1]) # Output: e

The float function is used to convert a string to a float value.

first = float(input("Enter the first number: "))

We can also change this expression to first + second, which is another way to write this piece of code.

The lower method is used to convert a string to lowercase or to find a character or a sequence of characters.

string = "Hello World"print(string.lower()) # Output: hello worldprint(string.find('o')) # Output: 4print(string.replace('o','a')) # Output: Hella Warld

The in operator can be used to check if a string contains a character.

string = "Python is a programming language for beginners."print('language' in string) # Output: True

Arithmetic Operators in Python

Python has various arithmetic operators that we can use, such as addition (+), subtraction (-), multiplication (*), and division (/).

print(10 + 3) # Output: 13

We also have an augmented assignment operator in Python that means incrementing a variable by a value.

x = 5x += 3 # Output: 8

Operator precedence in Python is similar to math, but we can always use parentheses to change the order of operations.

x = 10 + 3 * 2 # Output: 16

Multiplication and division have a higher order, so they are evaluated first. That's why the answer is 16.

x = 10 + 3 / 2print(x) # Output: 11.5

When we print x, we get 11.5.

x += 3print(x) # Output: 14.5

When we run x += 3, we get 14.5 as the result. When we run x == 13, it will store False in the x variable.

x = 1000 # Output: 1000

Avatar image
muhammadfarhanriaz786 asked for the first time
Avatar image
sanjai008 asked for the first time
Avatar image
dineshsugash31 asked for the first time
Avatar image
prathaprajendran2002 asked for the first time

Start filling in the gaps now
Log in